Page 1 of 1

CPU Usage showing as 21 digit number

Posted: Fri Jun 08, 2018 10:14 am
by stevmorr
Hi,

I have recently set up Nagios Core v4.3.4 which is great so far however I have noticed that the critical warnings for CPU usage are showing as weird numbers like 18446744072952762141% usage

I don't have an example screenshot as it is not happening right now however the alert history shows the below:

Code: Select all

[06-08-2018 15:29:49] SERVICE ALERT: SERVERNAME;CPU Load;CRITICAL;HARD;3;CPU Load 18446744072952762141% (5 min average)
in terms of the service defined it is just the default check_nt command

Code: Select all

check_command		check_nt!CPULOAD!-l 5,80,90
Has anyone else encountered this problem and if so, how to correct it?
thanks

Re: CPU Usage showing as 21 digit number

Posted: Fri Jun 08, 2018 10:27 am
by mcapra
Do you know which version of NSClient++ is installed on the remote machine(s)? That's often a very important piece of information when troubleshooting NSClient++ problems.

You might try resetting the Windows performance counters on the remote machine(s) as a first step.

Re: CPU Usage showing as 21 digit number

Posted: Fri Jun 08, 2018 10:44 am
by stevmorr
Hi,

thanks for the quick response. all my clients are running the latest version of NSClient++- NSCP-0.5.2.35-x64

v0.5.2.35

thanks

Re: CPU Usage showing as 21 digit number

Posted: Fri Jun 08, 2018 1:52 pm
by npolovenko
@stevmorr, You may need to rebuild system performance counters on your server.
https://support.microsoft.com/en-us/hel ... ver-2008-6
Otherwise, you can look for an alternative CPU plugin on the nagios exchange:
https://exchange.nagios.org/

Re: CPU Usage showing as 21 digit number

Posted: Mon Jun 11, 2018 3:47 am
by stevmorr
Thanks for your suggestions. I will try a reset of the counters on the most recently affected server however I think this is more widespread and more likely to be a replacement for the CPU check.

thanks

Re: CPU Usage showing as 21 digit number

Posted: Mon Jun 11, 2018 6:45 am
by mcapra
That's certainly an option, but I'm pretty sure all of the common Windows-based CPU checks (psutil/NCPA as well I believe) leverage the exact same performance counters that NSClient++ is using in this case. I say that not to discourage you from doing your own investigation (because I could be wrong), but just as as heads-up if you get similar results with different plugins.

Re: CPU Usage showing as 21 digit number

Posted: Mon Jun 11, 2018 3:29 pm
by scottwilkerson
stevmorr wrote:Thanks for your suggestions. I will try a reset of the counters on the most recently affected server however I think this is more widespread and more likely to be a replacement for the CPU check.

thanks
Let us know if that doesn't resolve the problem