Hi,

I try to monitor our windows DHCP scopes with a custom Powershell script. It collects automatically all scopes as channels and tells PRTG how many leases are in use. I'm giving MaxWarningLimit and MaxErrorLimit and it works well. Now I want to check if scope is enabled and trigger a warning if not. So I changed unit from Percent to Custom and set the value to -1, to set the MinWarningLimit to -1. But it does not work. The value is -1, but there is no warning for the channel. Is it possible to warn at negative values? Does anybody has another idea, how to warn if the scope is disabled?

Thank you for your help. If anyone is interested in script, fee free to ask.


Article Comments

Hello,

the lower limits trigger if the value is below them, not below or equal. (For upper limits, they trigger if the value is above).

If you set the lower warning limit for example to -0.5, or -0.9, it should trigger if the sensor has a value of -1.


Feb, 2022 - Permalink

Hi,

thank you for your reply and solution. It solved my problem. SOmetimes its so simple. Sry.


Feb, 2022 - Permalink