Page 1 of 1

check_nt CPULOAD 60minute averages not reporting correct

Posted: Wed Oct 24, 2018 12:52 pm
by MikeMAN987
Hello,

I am having an issue where I am trying to have CPU Load alerts only alert when the last 60minute average is over 80 percent (warning) and 90 percent (critical). For some reason, the command setting doesn't appear to be respecting using the last 60 minute average. (command, screenshots below).

Command - $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
ARG1 - CPULOAD
ARG2 -l 60,80,90

Screenshot 1 - Real-time Graph from VMware (showing high usage, but not for 60minutes)
vmware.jpg
Screenshot 2 - Graph from Nagios XI (I realize that when it gets to Nagios XI, the average is already calculated, so this spike will naturally be smaller)
nagios.jpg
Any insight is appreciated!

Regards,
Mike

Re: check_nt CPULOAD 60minute averages not reporting correct

Posted: Wed Oct 24, 2018 4:37 pm
by scottwilkerson
Depending on your version of NSClient this was a long standing bug that it was using seconds, instead of minutes

https://forums.nsclient.org/t/check-nt- ... nutes/4523

Re: check_nt CPULOAD 60minute averages not reporting correct

Posted: Thu Oct 25, 2018 12:38 pm
by MikeMAN987
thanks for that suggestion! I will try and put the items in their "seconds" equivalents and see if that resolves it and confirms the bug we may be seeing.

Re: check_nt CPULOAD 60minute averages not reporting correct

Posted: Thu Oct 25, 2018 3:31 pm
by scottwilkerson
MikeMAN987 wrote:thanks for that suggestion! I will try and put the items in their "seconds" equivalents and see if that resolves it and confirms the bug we may be seeing.
Sounds good

Re: check_nt CPULOAD 60minute averages not reporting correct

Posted: Tue Oct 30, 2018 9:07 am
by MikeMAN987
Scott, thank you for helping validate this. We are making arrangements to temporarily change all of our checks to their second(s) equivalent and re-write using NRPE. Feel free to close!