This support forum board is for support questions relating to
Nagios XI, our flagship commercial network monitoring solution.
-
crechet51
- Posts: 24
- Joined: Mon Aug 05, 2019 9:41 am
Post
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
-
Contact:
Post
by scottwilkerson »
Can you show the check_load command from nrpe.cfg on my.own.host
-
crechet51
- Posts: 24
- Joined: Mon Aug 05, 2019 9:41 am
Post
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/
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
-
Contact:
Post
by scottwilkerson »
You have the
-r flag specified
Code: Select all
-r, --percpu
Divide the load averages by the number of CPUs (when possible)
-
crechet51
- Posts: 24
- Joined: Mon Aug 05, 2019 9:41 am
Post
by crechet51 »
Yes, you're right.
Thanks, Scott
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
-
Contact:
Post
by scottwilkerson »
crechet51 wrote:Yes, you're right.
Thanks, Scott
No Problem
Locking thread