Im trying to change the unit configuration of a bunch of sensors. They are all "snmp Traffic sensors". I did manage to change the inheretence but not the value I want to change these to Mbit & MByte https://<HOSTNAME>/api/setobjectproperty.htm?username=admin&passhash=<Passhash>&id=7143&name=unitconfig__oukBytesBandwidth_speed_&value=Mbit

I have tried using the number 13 as that one is the value for MBit but no luck.


Article Comments

You can do this fairly easily with PrtgAPI

Get-Probe contoso | Get-Sensor -Type snmptraffic | Set-ObjectProperty BandwidthSpeedUnit mbit

This results in an API request as follows

/editsettings?id=40&unitconfig__oukbytesbandwidth_speed=13&unitconfiggroup=0&unitconfig_=

Regards,

lordmilko


Oct, 2018 - Permalink