nrpe issues

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
ammu440
Posts: 9
Joined: Fri Sep 09, 2022 9:24 am

nrpe issues

Post 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$
}
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: nrpe issues

Post by gormank »

Looks like a missing bracket below...

command[check_script=/usr/lib/nagios/plugins/check_script.sh $ARG1$
ammu440
Posts: 9
Joined: Fri Sep 09, 2022 9:24 am

Re: nrpe issues

Post 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
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: nrpe issues

Post by gormank »

Is the command defined on the remote server to be checked?
Was nrpe/xinetd restarted on the remote host?
Post Reply