SSHing with Nagios NRPE

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
djs
Posts: 9
Joined: Tue Jan 06, 2015 11:12 am

SSHing with Nagios NRPE

Post by djs »

Hi all,

Unfortunatly I cannot post in nagios core, so have had to post here. If anybody can move this post that would be great!

I currently have two servers.
Server A has nagios core on it.
Server B has nrpe on it

When an alarm is raised e.g a file doesnt exist I disable notifications (http://old.nagios.org/developerinfo/ext ... mmand_id=7). Once someone has added the file it is the alarm is then re-enabled.... This is the way it must happen and has been achieved by sshing from Server B into server A and runing a script containing the disable commands.

Is there any way to remove this SSH being run on Server B and pass parameters back via nrpe. Exit codes are passed back etc.....

Thanks in advance!

djs
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SSHing with Nagios NRPE

Post by Box293 »

You would create an event handler to do this on Server A.

Here's some reading material:

http://nagios.sourceforge.net/docs/3_0/ ... dlers.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked