I am trying to create a script to move objects from a base group to a sub group. My objects have the name of the sub group in the name field so I can logically locate the group ID to move them to. I see that I can duplicate an object to that new group but that would mean I have to go back and remove all the existing objects. I would like to be able to call the API, pass the object id and the new group ID and move the object, which is a device, in that fashion. I noticed that there is a moveobject.htm file in the API directory but there is no documentation on how to pass parameters to this object. IN fact, there is relatively little documentation, other than how to search for objects, on how to change, move, or deal directly with various objects.
Article Comments
This seems to be a basic API function. Why would this not be included? The problem we have, and I am sure based on other comments , is it is a very time consuming process to reclassify objects within the GUI. If we already know the group ID we want to move to, and the object ID we want to move, why can't we issue a simple API command in a script to make it happen. This is a huge shortcoming in the product. Why would you have a moveobject.htm file in the API directory that does nothing. For that matter, why all the other files in the API directory that are just like it that do nothing? Is there a plan to implement this set of API's? If so, when? I have over 500 objects for move to a better group because there is no capability to regex or string manipulate the object names on email output so that my CMDB and ticketing tools scan assign an incident to the prpoer device.
In a nutshell, I need the ability to move devices into groups that they are not already in or the capability to grep or regex the output to an email alert. Without these basic funstions the product just does not meet enterprise monitoring needs.
Jul, 2016 - Permalink
Ha, after a bit of digging:
http://<your-prtg>/moveobjectnow.htm?id=<object-id>&targetid=<id-of-target-folder>
:)
Jul, 2016 - Permalink
It's not possible to move objects between groups. They can only be moved up and down within their current group.
Jul, 2016 - Permalink