Nagios plugin to ssh, execute script and record status.
Posted: Tue Jun 11, 2013 11:50 am
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.