event handler to run a script on remote Windows Host
Posted: Fri Oct 07, 2011 1:55 pm
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
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