I created a custom WMI Sensor to get the days left of Windows Server evaluation. Until here no problem, I get the minutes from WMI and divide them by 1440 to get the days.

Now I wan't to set error and warning levels like:

Warning upper 10 days
Warning lower 6 days
Error upper 5 days
Error lower 0 days


but it will not be accepted...

I tried also

Warning upper 6 days
Warning lower 10 days
Error upper 0 days
Error lower 5 days


but same error...

How can I solve this?

Greets Daniel


Article Comments

Have you tried adding a threshold trigger? You can select it to trigger when the value is below a number. Of course you will need to use minutes for it to match with the sensor values.


Jan, 2022 - Permalink

Hi there,

Please note that you will need to enter the limits in this following order:
Upper Error Limit >= Upper Warning Limit >= Lower Warning Limit >= Lower Error Limit
According to the values you shared, you are not following this order.


Kind regards

Felix Wiesneth - Team Tech Support


Jan, 2022 - Permalink

Thanks for your answers!

@Toy: With a trigger I only can get a notification but no status change. This is not what I want. We are monitoring the status with a map, so a status change would be important when the value gets below a certain number...

@Felix: I tried: Upper Error 5 and everything else 0

Then I get an error status with 81days left...

Greets Daniel


Jan, 2022 - Permalink

Hi Daniel,

PRTG should give an error when 81 days are left since it is more than your limit configured of 5. If you want to get alerted when only 5 days are left, you need to configure this as Lower Error Limit.


Kind regards

Felix Wiesneth - Team Tech Support


Jan, 2022 - Permalink

Hi Felix,

this seems to work now.

I have one Server that is at 5,12 days now. When everything is ok it should go to error status during this day.

It would be nice if we could make a warning before error (i.e. 10-5 warning, 5-0 error) bit it seems that this is impossible at the moment, right?

Greets Daniel


Jan, 2022 - Permalink

Hi Daniel,

For sensor status Warning for values from 10-5 and status Error for values 5-0, you need to configure it like following:
Lower Warning Limit = 10
Lower Error Limit = 5

In this way the limit for Warning is reached if the received value is 10 or below and will change to Error if 5 is reached.


Kind regards

Felix Wiesneth - Team Tech Support


Jan, 2022 - Permalink

Felix, thanks a lot!

This was exactly what I wanted. I misunderstood the limit system completely.

Perhaps this could be better documented in the help pages? With more examples?

Greets Daniel


Jan, 2022 - Permalink

Hi Daniel,

I'm happy to hear that it works for you now. I will check if we change the documentation and give some more examples.


Kind regards

Felix Wiesneth - Team Tech Support


Jan, 2022 - Permalink