Hi,
Is there some way I can setup limits for the sensor CPU or for a sensor with an certain tag? Can this be done in the lookup-files?
we are using 1600+ sensors, all from the default templates from PRTG, but non of them have set limits. Selecting all sensors of a certain type and then change the channel-settings won't work all the time.
hope that there is an easy-er way
Article Comments
Can I use the API at least to request the channel limits values, Not to modify them?
Feb, 2016 - Permalink
Dear jfigueredo
The PRTG API allows the definition of channel limits. The API call to set the upper limit to 25, for example, looks like this.
/api/setobjectproperty.htm?id=2123&subtype=channel&subid=0&name=limitmaxerror&value=25
Note: You have to set limits using this API call before you can enable limits for the channel.
Once you have set limits, you can enable the limits using the following API call:
/api/setobjectproperty.htm?id=2123&subtype=channel&subid=0&name=limitmode&value=1
For more information, see section Object Manipulation in the manual.
Feb, 2016 - Permalink
Hi, this looks very promising!
But when I use
/api/setobjectproperty.htm?id=11574&subtype=channel&subid=0&name=limitmaxerror&value=25 |
It displayes 'OK', but I do not see the '25' in the upper error limit when I go to the 'Edit channel' of that sensor. (it was set to 1 before using the above command and it is still 1) I go there by clicking the Messages 'Edit channel settings' Gear symbol in the bottom right corner. It is a sensor of type Windows MSMQ Queue Length.
And I realy would like the option to read the current values of limitmaxerror and limitmode, but when I use the lines below I get 'Property not found'.
/api/getobjectproperty.htm?id=11574&subtype=channel&subid=0&name=limitmaxerror |
/api/getobjectproperty.htm?id=11574&subtype=channel&subid=0&name=limitmode |
Is the API for getobjectproperty of these channel settings not available yet? Or do I make a mistake somewhere? For me it is not very clear where to find the name of the property that I want to have the information about, is there a guide for that, or a list somewhere in the knowledgebase?
Apr, 2016 - Permalink
Dear ACDuindam
Which PRTG version are you using? The API call you use should work. The possible names are
- limitmaxerror
- limitmaxwarning
- limitminwarning
- limitminerror
It is not possible to read the limit values via the API. Currently it is not planned to implement it. The only way to read these values is to access the configuration directly ("PRTG Configuration.dat", found in "C:\ProgramData\Paessler\PRTG Network Monitor".)
Apr, 2016 - Permalink
The statusbar at the bottom of the screen shows: PRTG Network Monitor 16.1.22.2658, I think that's the problem! I think I have to wait until we also use a later version!
It would be great if the API getobjectproperty for just reading the these limits would be available in a new version too! We want to use it to check the sensors on their configuration, and get a list of those that are not configured well. Based on this limitmaxerror a notification should be sent. If it is not configured OK, the notification will not be sent at all, and problems are solved later than needed! Since we have many sensors, it is not possible to check them 1 by 1, and sensors added lateron can be wrong again too.
Thanks for your quick reply!
Apr, 2016 - Permalink
Dear ACDuindam
The API call to set limits should be available with the current 16.2.23 version.
About reading limit settings, please don't expect anything soon.
Apr, 2016 - Permalink
Hi, I just found this thread and upgraded my installation to 12.2.23.3270 and I can confirm the setting of limits is working well for me here, both Min and Max, so thank you very much for adding this feature!
Apr, 2016 - Permalink
Hi, how to clear a limit? Omitting parameter value doesn't have an effect and value=0 or value=-1 sets these limits ... Thanks in advance!
Feb, 2017 - Permalink
Hi Chris,
In the upcoming version "17.x.30" you will be able to clear the limit fields via the API. An example API-Call would be:
/api/setobjectproperty.htm?id=ID&subtype=channel&subid=SUBID&name=PROPERTY&value= |
So basically just leave the "value" parameter empty and the field will be cleared.
Best regards.
Mar, 2017 - Permalink
I also would like to edit global channels settings. Especially for CPU. Any update on this feature?
Jul, 2017 - Permalink
Hi Seth,
Unfortunately, there are no news at the moment regarding this topic. Please check the release notes from time to time for more information.
Best regards
Jul, 2017 - Permalink
PTF ChannelLimits is an application that allows you to get an overview of and alter the channel limits of your sensors.
Using the filter options, you can get an overview of threshold limits from specific sensors ie all your CPU sensors
More info here
Jul, 2017 - Permalink
Hello, In trying to set limits for some of my sensors via the API, I'm able to set the limitmaxwarning and limitmaxerror properties per channel, but I'm unable to set limitmode to 1. I have verified that if limitmode is set to 1, via the web UI, i can set it back to 0 via the API.
It doesn't seem to matter if the max/min limits are set before or after trying to set limitmode = 1, as doing either way does not work.
This seems like a bug.
API call is:
https://<server>/api/setobjectproperty.htm?id=28323&subtype=channel&subid=10&name=limitmode&value=1&username=<username>&passhash=<hash>
I'm on version 18.3.42.1748
Aug, 2018 - Permalink
Hi there,
This seems to be a bug, you are right. I have opened an internal development ticket to fix this issue in one of the coming new stable versions.
Best regards.
Aug, 2018 - Permalink
Hi there,
Just got the information that the fix is already ready and will be released with Version 18.x.43 in the coming weeks.
Best regards.
Aug, 2018 - Permalink
Update:
We've released version 18.3.43.2317 on AUGUST 14TH 2018 - It is now available and includes the fix. Please try it out if you're having issues with this. For the complete release notes, please refer to:
Best Regards,
Luciano Lingnau [Paessler Support]
Aug, 2018 - Permalink
Hi, Is there a way to add same limit to multiple channels? I have to monitor some mailboxes witch will have the same limits, there are over 100 channels on multiple sensors that need the same error limit.
Sep, 2020 - Permalink
Hello, I'm afraid it's not possible to edit multiple channels at once, you can however edit multiple sensors at once using the Multi Edit.
Sep, 2020 - Permalink
I am sorry, multi-edit is the only way to change limits in bulk.
The PRTG API is also not very useful for this, because channel limits are not accessible through the API.
In principle, you could stop the PRTG core service and edit the "PRTG Configuration.dat", which is an XML file. That file is located in "C:\ProgramData\Paessler\PRTG Network Monitor". The channel limits in the configuration file are multiplied by 125. This is a side effect of PRTG's internal data handling. However, it is easy to damage the file when edited. We also provide no technical support for this, you do it completely at your own risk.
Jan, 2016 - Permalink