CPU Critical 100 alert sent as Warning?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
MonitorGuy
Posts: 46
Joined: Wed May 20, 2020 8:22 am

CPU Critical 100 alert sent as Warning?

Post by MonitorGuy »

Had a strange one this morning:

Using ncpa to monitor Windows servers

Check interval: 6 min
Retry interval: 1 min
Max retries: 4

cpu/percent -w '97' -c '100' -q 'aggregate=avg'

Alert notification:

Service: CPU Load \State: WARNING
Info: WARNING: Percent was 100.00 %

My guess? The monitor rechecked four times in four mins. so if the average calculated was less than "100" for the four checks (say 99.9%) the severity would be a Warning, not a Critical.

Unless someone else has a better explanation, I suggested changing the Critical threshold to 99%

check_ncpa.py, Version 1.2.4
Nagios XI 5.8.5

Thanks!

Craig
<<MonitorGuy>>
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU Critical 100 alert sent as Warning?

Post by ssax »

Correct, it's comparing with greater-than compared to greater-than-or-equal-to.
User avatar
MonitorGuy
Posts: 46
Joined: Wed May 20, 2020 8:22 am

Re: CPU Critical 100 alert sent as Warning?

Post by MonitorGuy »

Thanks, will ask to change the Critical threshold at 99 instead of 100 to resolve.

Craig
<<MonitorGuy>>
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU Critical 100 alert sent as Warning?

Post by ssax »

Great, let us know when we're okay to lock this up and mark it as resolved.
User avatar
MonitorGuy
Posts: 46
Joined: Wed May 20, 2020 8:22 am

Re: CPU Critical 100 alert sent as Warning?

Post by MonitorGuy »

I think we are good to go, Thanks!
<<MonitorGuy>>
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU Critical 100 alert sent as Warning?

Post by ssax »

If you want it to be greater-than-or-equal-to you could pass the thresholds like this:

Code: Select all

cpu/percent -w '~:97' -c '~:100' -q 'aggregate=avg'
Taken from here:

https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT

Locking the ticket and marking as resolved.

Thank you!
Locked