Page 1 of 1
NRPE Command not found
Posted: Fri Nov 13, 2015 9:14 am
by harsha.s.aryan
hi all,
i am trying to add check_swap in client and in nagios server i am getting error "NRPE: Command 'check_swap' not defined"
please help me
Thanks and regards,
harsha
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 10:32 am
by jdalrymple
Commands are defined in your nrpe.cfg
Something like this near the bottom of the file should get you going:
Code: Select all
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20 -c 10
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 10:50 am
by harsha.s.aryan
hi jdalrymple
same is added in client machine nrpe.cfg
if I run the command manually in CLI it is working.
thanks
harsha
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 10:58 am
by rkennedy
Did you restart the NRPE service after adding the line?
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 11:01 am
by harsha.s.aryan
I have restarted in client as we'll as in master but in master I am getting error as command check_swap not found
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 11:24 am
by rkennedy
Can you please post a copy of your NRPE.cfg?
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 11:25 am
by harsha.s.aryan
do you need client nrpe or master nrpe
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 11:27 am
by rkennedy
The client nrpe.cfg.
Re: NRPE Command not found
Posted: Fri Nov 13, 2015 8:55 pm
by harsha.s.aryan
hi guys thank you for the support
issue was resolved
i was restarting nagios instead of restarting nrpe.
thank you
Re: NRPE Command not found
Posted: Mon Nov 16, 2015 10:21 am
by rkennedy
No problem. Glad to see this fixed. I will now close this thread out, but feel free to open another if you ever need assistance in the future.