What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Cloned device/group not exactly cloned

Votes:

0

When I clone a device or group through the following HTML API call the resulting group or device ends up with the "Schedules, Dependencies, and Maintenance Window" inheritance turned off (ie. pointing to itself) even though the original had it turned on.

https://PRTGHost/api/duplicateobject.htm?id=objectID&name=GroupName&targetid=targetID&auth

If I clone the same device or group to the same destination using the web interface (right click, clone) it keeps the inheritance on.

I am using the API as I have 100's of groups to clone. I really don't want to have to go into every group and every device that has been cloned and update this setting. (I understand that I cannot use the API to change the inheritance of "Schedules, Dependencies, and Maintenance Window")

clone duplicate http-api

Created on Mar 23, 2018 2:49:52 PM



Best Answer

Accepted Answer

Votes:

1

Seems like th duplicateobject call via API works slightly different and doesn't copy all configuration nodes. Use this one instead: https://<prtg fqdn>/duplicateobject.htm?id=<source objid>&name=<new name>&host=<host>&serviceurl=<service url>&searchtext=&targetid=<objid of parent group>


Kind regards,
Stephan Linke, Tech Support Team

Created on Mar 27, 2018 10:25:22 AM by  Stephan Linke [Paessler Support]



5 Replies

Votes:

0

When you enable the dependency, is the configuration still there? Or is it not set?


Kind regards,
Stephan Linke, Tech Support Team

Created on Mar 26, 2018 8:31:12 PM by  Stephan Linke [Paessler Support]



Votes:

0

The original device has the "Schedules, Dependencies, and Maintenance Window" inheritance turned on. ie.it inherits from the group above.

The cloned device ends up with the "Schedules, Dependencies, and Maintenance Window" inheritance turned off and the dependency points to its-self. I would like it to keep the inheritance turned on just like the device it was cloned from.

Created on Mar 27, 2018 8:02:09 AM



Votes:

0

If I turn off inheritance on my master device (the one I am cloning) there is an empty configuration there (not pointing to anything). I don't know how the cloned device ends up pointing the dependency to itself.

Created on Mar 27, 2018 8:05:44 AM



Accepted Answer

Votes:

1

Seems like th duplicateobject call via API works slightly different and doesn't copy all configuration nodes. Use this one instead: https://<prtg fqdn>/duplicateobject.htm?id=<source objid>&name=<new name>&host=<host>&serviceurl=<service url>&searchtext=&targetid=<objid of parent group>


Kind regards,
Stephan Linke, Tech Support Team

Created on Mar 27, 2018 10:25:22 AM by  Stephan Linke [Paessler Support]



Votes:

0

That works perfectly. Thank you.

Created on Mar 28, 2018 3:05:58 PM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.