NRPE Command not found
-
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
NRPE Command not found
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
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
Harsha
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: NRPE Command not found
Commands are defined in your nrpe.cfg
Something like this near the bottom of the file should get you going:
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
-
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: NRPE Command not found
hi jdalrymple
same is added in client machine nrpe.cfg
if I run the command manually in CLI it is working.
thanks
harsha
same is added in client machine nrpe.cfg
if I run the command manually in CLI it is working.
thanks
harsha
Regards,
Harsha
Harsha
Re: NRPE Command not found
Did you restart the NRPE service after adding the line?
Former Nagios Employee
-
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: NRPE Command not found
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
Harsha
-
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
-
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: NRPE Command not found
hi guys thank you for the support
issue was resolved
i was restarting nagios instead of restarting nrpe.
thank you
issue was resolved
i was restarting nagios instead of restarting nrpe.
thank you
Regards,
Harsha
Harsha
Re: NRPE Command not found
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