Nagios plugin to ssh, execute script and record status.

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
jamespye
Posts: 5
Joined: Thu Sep 06, 2012 9:03 am

Nagios plugin to ssh, execute script and record status.

Post 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.
Last edited by abrist on Wed Jun 12, 2013 10:10 am, edited 2 times in total.
Reason: No external links that smell like ads please
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

This is the agent you are looking for . . .
(check by ssh)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jamespye
Posts: 5
Joined: Thu Sep 06, 2012 9:03 am

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

Post by jamespye »

This looks good, thanks for giving the novice direction.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

No problem, locking 'er up!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked