What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

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

Your Vote:

Up

Down

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 by  Niclas Lundin (0) 1



1 Reply

Votes:

1

Your Vote:

Up

Down

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 by  lordmilko (2,142) 2 1



Please log in or register to enter your reply.


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.