Nagios plugin to ssh, execute script and record status.
Nagios plugin to ssh, execute script and record status.
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
Reason: No external links that smell like ads please
Re: Nagios plugin to ssh, execute script and record status.
This is the agent you are looking for . . .
(check by ssh)
(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.
"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.
Re: Nagios plugin to ssh, execute script and record status.
This looks good, thanks for giving the novice direction.
Re: Nagios plugin to ssh, execute script and record status.
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.
"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.