New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Cloned device/group not exactly cloned

Votes:

0

Your Vote:

Up

Down

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 by  Matthew Lawson (180) 2 1



Best Answer

Accepted Answer

Votes:

1

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  Matthew Lawson (180) 2 1



Votes:

0

Your Vote:

Up

Down

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 by  Matthew Lawson (180) 2 1



Accepted Answer

Votes:

1

Your Vote:

Up

Down

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

Your Vote:

Up

Down

That works perfectly. Thank you.

Created on Mar 28, 2018 3:05:58 PM by  Matthew Lawson (180) 2 1



Please log in or register to enter your reply.


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.