nrpe to a Windows box through event_handlers ...
Martin Mielke
martin.mielke at thales-is.com
Fri Jul 9 09:21:56 CEST 2004
Hi Ludo,
I'll post to the list, so everybody can get your answer as well...
Ludo Bosmans wrote:
>Martin,
>
>Sorry to answer not via the Nagios-users list. Currently i'm unable to reply with my registered e-mail address. So my message will be refused.
>
>
OK. Thanks for the reply.
>Use the check_nt plugin to see if a service is running or stopped.
>( this requires nsclient service running on the windows server )
>
>
>
Well, the service is just an ASP server. To check for its availability
we use check_http with the -e switch...
>Create an eventhandler that restart the specific service on the windows.
>You need nrpe_nt on the windows server.
>
>
Yep, that was already know. My problem is that I don't know how to
combine the event_handlers to launch a .bat file through the nrpe_nt to
restart the service on the Windoze side...
>So the idea is to check regulary if a certain service is up or down, with lets say max 3 retries. In case the service is down, you start an event-handler that request via check_nrpr to execute a command on the windows. This could be a .bat file with f.e. net start SPOOLER
>
>
Yes, that's my initial thought...
Thanks in advance!
Best regards,
Martin
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list