We have a process that automatically clones an oracle database into one of our existing environments. During this process we need to disable all of our oracle sensors, or alternatively monitoring for the device since it is only used for the database. IS there any way to automatically disable monitoring of a device or all notiifcations from sensors, perhaps with an http post command or something like that?


Article Comments

Hi there,

To pause a device, sensor or group via the API use the following call:

/api/pause.htm?id=<OBJECT-ID>&pausemsg=<YOUR_MESSAGE>&action=0&username=<USER>&passhash=<PASSHASH>

Just don't forget to change the parameters accordingly. You can get the Passhash under "Setup > System Administration > User Accounts > USER > Show Passhash".

To resume the object again, use the following call. Again, please don't forget to change the parameters accordingly:

/api/pause.htm?id=<OBJECT-ID>&action=1&username=<USER>&passhash=<PASSHASH>

You can find the API-Documentation within your PRTG-Webinterface under "/api.htm?tabid=1".

Best regards.


Mar, 2017 - Permalink