NRPE Version 3.2.1.
Issue: Trying to check a remote service on Debian Linux. Locally, it succeeds. I am trying to check it remotely, but it keeps failing as per below:
Code: Select all
# /usr/lib/nagios/plugins/check_nrpe -H 10.32.10.1 -t 30 -c check_service -a 'smbd'
NRPE: Command 'check_service!smbd' not definedCode: Select all
define command {
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$
}
Code: Select all
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=127.0.0.1,10.32.10.12
dont_blame_nrpe=1
command[check_service]=/usr/lib/nagios/plugins/check_service -s $ARG1$Code: Select all
Dec 20 10:25:24 fs1 nrpe[3302]: Connection from 10.32.10.12 port 35559
Dec 20 10:25:24 fs1 nrpe[3302]: Host address is in allowed_hosts
Dec 20 10:25:25 fs1 nrpe[3302]: Host 10.32.10.12 is asking for command 'check_service' to be run...
Dec 20 10:25:25 fs1 nrpe[3302]: Running command: /usr/lib/nagios/plugins/check_service -s
Dec 20 10:25:25 fs1 nrpe[3302]: Command completed with return code 2 and output: CRITICAL: Service is not running!
Dec 20 10:25:25 fs1 nrpe[3302]: Return Code: 2, Output: CRITICAL: Service is not running!
Dec 20 10:25:25 fs1 nrpe[3302]: Connection from 10.32.10.12 closed.