What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Changing the unit Configuration via API

Votes:

0

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.

api channel-unit custom-unit

Created on Oct 10, 2018 1:19:24 PM



1 Reply

Votes:

1

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

Created on Oct 11, 2018 4:46:33 AM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.