event handler to run a script on remote Windows Host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

event handler to run a script on remote Windows Host

Post 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
Last edited by lyle on Tue Oct 11, 2011 12:01 pm, edited 1 time in total.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post 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.
Nicholas Scott
Former Nagios employee
Locked