With the following URL, I am able to retrieve the name and max threshold of a channel.
https://monitoring/api/getobjectproperty.htm?id=2001&subtype=channel&subid=0&name=name&show=text
But, didn't find any fieldname to use in API, for Maximum (kbit/s) limit that we set manually in PRTG on a network interface's channel ? I would like to retrieve 30,000 for the below example's setting on an interface "Traffic In" channel.
Data
( ) Display actual values in kbit/s
(*) Display in percent of maximum
Maximum (kbit/s)
<b>30,000</b>
Article Comments
Can we get the complete list for the rest of available names ?
name id limitmode limitmaxerror limitmaxwarning limitminwarning limitminerror limiterrormsg limitwarningmsg ref100percent etc., ?
Sep, 2021 - Permalink
You will find many elements in the following manual under Advanced Script, HTTP Data, and REST Custom Sensors: Elements: https://www.paessler.com/manuals/prtg/custom_sensors#advanced_elements.
However, I'm afraid that some of them can't be supported as they can be different between installations. Therefore you need to get the id of the objects by using the developer console of your browser.
Regards.
Sep, 2021 - Permalink
Hello,
Thank you for your message.
To get the maximum value defined in the setting of a sensor channel, you can use the following API call:
If you have questions, let me know.
Regards.
Sep, 2021 - Permalink