CPU Usage showing as 21 digit number

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stevmorr
Posts: 3
Joined: Fri Jun 08, 2018 9:36 am

CPU Usage showing as 21 digit number

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: CPU Usage showing as 21 digit number

Post 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.
Former Nagios employee
https://www.mcapra.com/
stevmorr
Posts: 3
Joined: Fri Jun 08, 2018 9:36 am

Re: CPU Usage showing as 21 digit number

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CPU Usage showing as 21 digit number

Post 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/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
stevmorr
Posts: 3
Joined: Fri Jun 08, 2018 9:36 am

Re: CPU Usage showing as 21 digit number

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: CPU Usage showing as 21 digit number

Post 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.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CPU Usage showing as 21 digit number

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked