Page 1 of 1
nrpe&check_load = false results
Posted: Thu Sep 05, 2019 6:23 am
by crechet51
Hi,
When I run:
Code: Select all
./check_nrpe -H my.own.host -c check_load
I get:
Code: Select all
OK - load average: 1.10, 0.79, 0.69|load1=1.100;2.000;5.000;0; load5=0.792;2.000;5.000;0; load15=0.693;2.000;5.000;0;
but at this time, on the computer that I am checking:
Why does nrpe get false results?
Re: nrpe&check_load = false results
Posted: Thu Sep 05, 2019 12:43 pm
by scottwilkerson
Can you show the check_load command from nrpe.cfg on my.own.host
Re: nrpe&check_load = false results
Posted: Thu Sep 05, 2019 1:52 pm
by crechet51
sure:
Code: Select all
log_facility=daemon
pid_file=/var/run/nagios/nrpe.pid
server_port=5666
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=127.0.0.1, my.own.host2
dont_blame_nrpe=0
allow_bash_command_substitution=0
debug=0
command_timeout=60
connection_timeout=300
command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib/nagios/plugins/check_load -r -w 2,2,2 -c 5,5,5
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /dev/sda1
command[check_disk2]=/usr/lib/nagios/plugins/check_disk -w 6% -c 3% -p /dev/sdb1
include=/etc/nagios/nrpe_local.cfg
include_dir=/etc/nagios/nrpe.d/
Re: nrpe&check_load = false results
Posted: Thu Sep 05, 2019 1:57 pm
by scottwilkerson
You have the
-r flag specified
Code: Select all
-r, --percpu
Divide the load averages by the number of CPUs (when possible)
Re: nrpe&check_load = false results
Posted: Thu Sep 05, 2019 2:34 pm
by crechet51
Yes, you're right.
Thanks, Scott

Re: nrpe&check_load = false results
Posted: Thu Sep 05, 2019 3:08 pm
by scottwilkerson
crechet51 wrote:Yes, you're right.
Thanks, Scott

No Problem
Locking thread