Page 1 of 1

SSHing with Nagios NRPE

Posted: Thu Apr 16, 2015 6:18 am
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

Re: SSHing with Nagios NRPE

Posted: Thu Apr 16, 2015 7:40 pm
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