Help for understand check_load

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
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Help for understand check_load

Post by xerez »

Hi, I don't understand all of the output of that command. Can anyone explain me? Thanks.

Code: Select all

nagios@localhost:/usr/local/nagios/libexec$ ./check_load -w 2,0.90,0.95 -c 4,0.95,1
OK - load average: 0.00, 0.01, 0.05|load1=0.000;2.000;4.000;0; load5=0.010;0.900;0.950;0; load15=0.050;0.950;1.000;0;
How it calculates the first and the last number of loadX and what mean? For example in load15:

load15=0.050;0.950;1.000;0;

I understand that the second and third numbers are the values for warnings and criticals. Not?

Thanks.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help for understand check_load

Post by tmcdonald »

https://nagios-plugins.org/doc/guidelines.html#AEN200

The format is:

Code: Select all

'label'=value[UOM];[warn];[crit];[min];[max]
So it looks like the 0 is the minimum value, and no maximum was shown.
Former Nagios employee
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Re: Help for understand check_load

Post by xerez »

Thanks, now I am trying run this:
nagios@localhost:/usr/local/nagios/libexec$ ./check_nrpe -H <host ip> -c check_load -a '-w 2,0.9,0.95 -c 4,0.95,1'
OK - load average: 0.00, 0.01, 0.05|load1=0.000;15.000;30.000;0; load5=0.010;10.000;25.000;0; load15=0.050;5.000;20.000;0;
But the warnings and criticals no changed. Why?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help for understand check_load

Post by tmcdonald »

Those are the warning and critical thresholds, not the measured values themselves.
Former Nagios employee
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Help for understand check_load

Post by jdalrymple »

Mine behaves:

Code: Select all

[jdalrymple@localhost libexec]$ ./check_nrpe -H 127.0.0.1 -c check_load -a '-w 2,0.9,0.95 -c 4,0.95,1'
OK - load average: 0.77, 0.72, 0.63|load1=0.770;2.000;4.000;0; load5=0.720;0.900;0.950;0; load15=0.630;0.950;1.000;0;
My guess is that you're actually using the argumentless check_load:

Code: Select all

[jdalrymple@localhost libexec]$ ./check_nrpe -H 127.0.0.1 -c check_load -a '-w 2,0.9,0.95 -c 4,0.95,1'
OK - load average: 0.57, 0.72, 0.64|load1=0.570;15.000;30.000;0; load5=0.720;10.000;25.000;0; load15=0.640;5.000;20.000;0;
[jdalrymple@localhost libexec]$ grep -v "^#" /usr/local/nagios/etc/nrpe.cfg | grep check_load
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
The daemon is just tossing your args.
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Re: Help for understand check_load

Post by xerez »

Yes, that was the problem. Thanks.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help for understand check_load

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked