I have made a custom script. This script return an XML value. I have read "PRTG API (Application Programming Interface)". I have found what I can use in my XML response.
But, can I put a limit for a channel ? It's possible to make that with the web gui, but in a response xml ?
Can I manage the notifications by my response in XML ?
Thanks for the reply
Article Comments
Yes, but I monitor a lot of Volume in my NetApp System. I don't want to set manually on 45 channels a limit with the Webinterface.
So, can I set a limit in my response XML ? OR There is an other way to do that ?
Thanks
Jan, 2012 - Permalink
Well, if you perform the check within your script, you only have the chance of returning an error like this:
To return an error, the format is: <prtg> <error>1</error> <text>Your error message</text> </prtg>
But this then will obliterate all values for all channels of the sensor, because the sensor is in error-state from the script on. Whereas going via the Channel-Limits would preserve the values on the channels.
Jan, 2012 - Permalink
I don't want to use the Channel-Limit by the webinterface, because the list of channel can change at every moment. So, I need to put "limit" dynamicly. If the list of my volume change (in exemple I have a new volume) I need to add a limit with the webinterface. I do not want to set manually a limit.
There is a way to do that dynamicly ?
Jan, 2012 - Permalink
Well, as said, then the only other way is to do it in the script and return only an error-code with an error-message from the script to PRTG.
Jan, 2012 - Permalink
Dear Sebastien,
it should be possible to set the Limits in the Channel-settings of the Sensor in the Webinterface of PRTG then.
best regards.
Jan, 2012 - Permalink