Page 1 of 1

nrpe issues

Posted: Tue Sep 20, 2022 3:48 am
by ammu440
Hi all,

We have been using NRPE version 3 from the client and then we have updated version to 4 on all the clients. Now all the nrpe checks has an UNknown state "nrpe command not defined"

command[check_script=/usr/lib/nagios/plugins/check_script.sh $ARG1$

Can you please suggest.

define command {
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

Re: nrpe issues

Posted: Tue Sep 20, 2022 3:13 pm
by gormank
Looks like a missing bracket below...

command[check_script=/usr/lib/nagios/plugins/check_script.sh $ARG1$

Re: nrpe issues

Posted: Wed Sep 21, 2022 2:12 am
by ammu440
gormank wrote:Looks like a missing bracket below...

command[check_script]=/usr/lib/nagios/plugins/check_script.sh $ARG1$
oh no the bracket was there just typo error

Re: nrpe issues

Posted: Thu Sep 22, 2022 2:05 pm
by gormank
Is the command defined on the remote server to be checked?
Was nrpe/xinetd restarted on the remote host?