Hello,
Is there a way to get or set channel settings for a given sensor through the HTTP API? Specifically, I want to be able to enable or disable limits on channels, as well as set the upper or lower limits.
Article Comments
Has this been addressed in new releases of PRTG? I need to be able to change limits for large number of sensors and/or channels, so this is a key feature.
Oct, 2015 - Permalink
Sorry, channel settings still can't be done via API. Note that this is not due to "we can't do it", but it's because "we don't really want users to create their own PRTG interfaces" since this might lead to unforseen errors and cause increased workload for our support team.
However, you can change limits for multiple sensors/channels via multi-edit (see "Channel Settings"). Note that this works only for sensors of the same type.
Oct, 2015 - Permalink
Can't we read and edit existing channels without getting the ability to create new ones? I really need to be able to edit settings of existing channels through the API. We have no need to add new channels. Since we can already read and edit the channel settings through the PRTG interface how would doing the same thing via the API cause increased workload to the Paessler Support team?
Nov, 2015 - Permalink
It might increase workload in terms of "Oh yeah, we have a script running every 5 seconds that passes current limits to PRTG and modifies the channels accordingly". Just an example, but it would take time to figure out :)
The API will see a revamp probably sometime next year where more options will be made available; changing channel settings will probably be one of the new features. However, don't pin me down on it. There is also no release date yet. That leaves channels not editable with the API as of right now. Sorry!
Nov, 2015 - Permalink
Hi,
In the meantime the API has been able to edit channels of a sensor. Unfortunately, there is still no way to export the values of all channels into a CSV.
Is there another way to export the channel settings for all sensors to a CSV?
It would be desirable to be able to store the bandwidth in the sensor settings of an SNMP traffic sensor, not in the channel settings as before
Greetings, Marco
Nov, 2017 - Permalink
Hi Marco,
Unfortunately, no. It's not possible to export the channel settings conveniently.
The following should be helpful: https://github.com/lordmilko/PrtgAPI
Kind regards,
Stephan Linke, Tech Support Team
Nov, 2017 - Permalink
Hi,
no, I'm afraid it is not possible to access the channel settings through PRTG API. Sorry.
Best regards
Oct, 2013 - Permalink