Hi,

Is it possible to make my custom sensors Warning/Error limit to refresh after every scan of the sensor? To be exact: I wrote a custom EXEXML sensor for Disk Free monitoring - which sets the Warning limit to 10GB for a 100GB volume and sets 50GB warning limit for a 2TB volume.

As far as i know, LimitMinWarning etc elements "will be considered only on the first sensor scan" https://www.paessler.com/manuals/prtg/custom_sensors

For initial scan, it is OK for me - but for example, if I extend my 100GB volume to 2TB, I want PRTG to automatically adjust the Warning limit to 50GB (as it is returned in the XML channel setting).

Is it possible? Thank you in advance,

Daniel


Article Comments

Hi,

Unfortunately, it is only possible to adjust the sensor channel limits manually after the initial sensor creation.

Best regards,
Sebastian


May, 2019 - Permalink

Hi,

Well, you can use the API to set channel limits.

You could considder altering the channel limits when the channel value has changed using a 'change' trigger that fires a custom notification, or make this a part of your custom sensor.

Example API call would be:

/api/setobjectproperty.htm?id=2123&subtype=channel&subid=0&name=limitmaxerror&value=25

See also setting-limits-for-sensor-in-bulk-or-via-api (topic 67764)


Sensors | Multi Channel Sensors | Tools | Notifications

Kind regards,

[[http://prtgtoolsfamily.com]] PRTG Tools Family


May, 2019 - Permalink

Thank you very much for the advice, I will give it a try.

Regards, Daniel


May, 2019 - Permalink