Re: NRPE issue
Posted: Wed Apr 24, 2013 1:17 pm
I would recommend removing the "custom check_nrpe_1arg" command, and reading my previous post one more time.
I will give you an example that works, and then you can decide if you want to set up your system in similar way.
On the REMOTE machine I have:
In the "nrpe.cfg":
On my NAGIOS server, I have:
Command definition:
Service definition:
Running checks from the command line on my Nagios server:
I will give you an example that works, and then you can decide if you want to set up your system in similar way.
On the REMOTE machine I have:
In the "nrpe.cfg":
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
command[check_load_nrpe]=/usr/local/nagios/libexec/check_load $ARG1$Command definition:
Code: Select all
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$Code: Select all
check_command check_nrpe!check_users!-a '-w 3 -c 5'Code: Select all
check_command check_nrpe!check_load_nrpe!-a '-w 15,10,5 -c 30,20,10'Code: Select all
./check_nrpe -H <client_IP> -c check_users -a '-w 3 -c 5'
USERS OK - 1 users currently logged in |users=1;3;5;0
./check_nrpe -H <client_IP> -c check_load_nrpe -a '-w 15,10,5 -c 30,20,10'
OK - load average: 0.32, 0.63, 0.63|load1=0.320;15.000;30.000;0; load5=0.630;10.000;20.000;0; load15=0.630;5.000;10.000;0;