Page 1 of 1

Monitor sshd service

Posted: Thu Apr 24, 2014 5:00 am
by nagiostool
Hi,

For monitoring a service using Nagios XI, there should be any plugin installed on the client side ?

Since while trying to monitor ssh service using the inbuilt wizard i get the following error.

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 192.168.2.30 -t 600 -c check_init_service
OUTPUT: NRPE: Command 'check_init_service' not defined

Any idea ?

Re: Monitor sshd service

Posted: Thu Apr 24, 2014 9:30 am
by tmcdonald
The only time you need an agent installed is if you are monitoring some sort of metric that is only available from within the remote machine, such as CPU load or to see if a program is running. In this case, it looks like NRPE (Nagios Remote Plugin Executor) is trying to run the check, and you do need an agent for that.

Which wizard did you run? If you just want to see if SSH is running you can test the port instead of trying to see if the service is running internally.

Re: Monitor sshd service

Posted: Mon Apr 28, 2014 1:24 am
by nagiostool
Thank Q it did not strike my mind.

I have done and it meets my requirement.

Thanks a lot :D

Re: Monitor sshd service

Posted: Mon Apr 28, 2014 9:18 am
by tmcdonald
Awesome. I'll be closing this thread now, but feel free to open another if you need anything in the future!