Page 1 of 1

Nagios plugin to ssh, execute script and record status.

Posted: Tue Jun 11, 2013 11:50 am
by jamespye
I need the Nagios RHEL Linux server to ssh into a remote RHEL Linux server and execute a users script and return the status codes back to the Nagios server to display the condition (OK, WARNING, CRITICAL) to the dashboard/email if necessary. A remote NRPE agent is not an option to deploy to the server. Is there an existing plugin I can modify to accomplish this? I am still a Nagios novice. I can write a command line script to gather the status codes from the remote server but I am not sure how to integrate the script(plugin?) into Nagios to make it all work.

Re: Nagios plugin to ssh, execute script and record status.

Posted: Tue Jun 11, 2013 12:22 pm
by abrist
This is the agent you are looking for . . .
(check by ssh)

Re: Nagios plugin to ssh, execute script and record status.

Posted: Wed Jun 12, 2013 9:53 am
by jamespye
This looks good, thanks for giving the novice direction.

Re: Nagios plugin to ssh, execute script and record status.

Posted: Wed Jun 12, 2013 10:10 am
by abrist
No problem, locking 'er up!