NRPE Command not found

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.
Locked
harsha.s.aryan
Posts: 52
Joined: Fri Nov 13, 2015 9:05 am

NRPE Command not found

Post 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
Regards,
Harsha
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NRPE Command not found

Post 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
harsha.s.aryan
Posts: 52
Joined: Fri Nov 13, 2015 9:05 am

Re: NRPE Command not found

Post 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
Regards,
Harsha
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Command not found

Post by rkennedy »

Did you restart the NRPE service after adding the line?
Former Nagios Employee
harsha.s.aryan
Posts: 52
Joined: Fri Nov 13, 2015 9:05 am

Re: NRPE Command not found

Post 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
Regards,
Harsha
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Command not found

Post by rkennedy »

Can you please post a copy of your NRPE.cfg?
Former Nagios Employee
harsha.s.aryan
Posts: 52
Joined: Fri Nov 13, 2015 9:05 am

Re: NRPE Command not found

Post by harsha.s.aryan »

do you need client nrpe or master nrpe
Regards,
Harsha
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Command not found

Post by rkennedy »

The client nrpe.cfg.
Former Nagios Employee
harsha.s.aryan
Posts: 52
Joined: Fri Nov 13, 2015 9:05 am

Re: NRPE Command not found

Post by harsha.s.aryan »

hi guys thank you for the support

issue was resolved
i was restarting nagios instead of restarting nrpe.

thank you
Regards,
Harsha
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE Command not found

Post 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.
Former Nagios Employee
Locked