Nagios plugin to ssh, execute script and record status.

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios plugin to ssh, execute script and record status.

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

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

Postby abrist » Tue Jun 11, 2013 12:22 pm

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.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Postby jamespye » Wed Jun 12, 2013 9:53 am

This looks good, thanks for giving the novice direction.
jamespye
 
Posts: 5
Joined: Thu Sep 06, 2012 9:03 am

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

Postby abrist » Wed Jun 12, 2013 10:10 am

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.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm


Return to Community Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 34 guests