Page 1 of 1

event handler to run a script on remote Windows Host

Posted: Fri Oct 07, 2011 1:55 pm
by lyle
I've read through the Event Handler documentation, and think I understand how to go about it.

But if there's a problem, what I'll want the Event Handler to do is run a script on the remote Windows Host. This is the part I don't understand, how a Handler on the Nagios server is going to have an effect on the remote Host, especially a Windows one.

My guess is I'll have to make another "pseudo check" that's defined in the Remote Host's nrpe.cfg(NRPE) or nsc.ini(NSClient++), which will run the script and report back success to the Event Handler on the Server.

Any advice is appreciated. Thanks....Lyle

Re: event handler to run a script on remote Windows Host

Posted: Fri Oct 07, 2011 4:20 pm
by nscott
Lyle, you hit the nail on the head, that the typical implementation of it. With Windows in particular thats exactly how you go about implementing it.