Hello guys,

can I update channels of SNMP-Traffic-Sensors over the HTTP-API? I wan't update the bandwith for my snmp traffic sensors.

Thanks,

Marco


Article Comments

Hi there,

Please elaborate more detailed what information of the channels you want to update as it is not quite clear what information you are referring to. :)


Dec, 2016 - Permalink

I would like to change all channels of a snmp-traffic-sensor and set the scaling of the vertical axis over the HTTP API.


Dec, 2016 - Permalink

Hi Marco,

You can use the following API-Calls to change the vertical scaling of one channel of one sensor, so for four channels you will have to run these queries four times.

set axis-mode to manual

/api/setobjectproperty.htm?id=<SENSORID>&subid=<CHANNELID>&subtype=channel&name=axismode&value=1

Set axis max to 80 Mbit (unit in the url is byte)

/api/setobjectproperty.htm?id=<SENSORID>&subid=<CHANNELID>&subtype=channel&name=axismax&value=10000000

Set axis min 80 Mbit (unit in the url is byte)

/api/setobjectproperty.htm?id=<SENSORID>&subid=<CHANNELID>&subtype=channel&name=axismin&value=1000000

Dec, 2016 - Permalink

Wow! Thanks a lot!! Is the a documentation where I can read all possible API-Calls? In the online mannual i didn't find this API-Call...


Dec, 2016 - Permalink

Hi Marco,

You can look at the API documentation within your PRTG Installation for additional calls:

/api.htm?tabid=1.

Dec, 2016 - Permalink

Thanks a lot, but in the documentation under /api.htm?tabid=1 i can't find any informations about change the vertical scaling of one channel of one sensor.


Dec, 2016 - Permalink

Hi,

You can see the full documentation by clicking through the different taps, Object Manipulation is documented under "/api.htm?tabid=6".


Dec, 2016 - Permalink