run a script based on event??

Ludo Bosmans Ludo.Bosmans at aureusim.be
Fri Aug 5 09:25:33 CEST 2005


Hi,

Have a look to following link, it is quiet easy to make a windows bat
file with the correct options to reboot.
http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm

Install nrpe_nt on the windows server and and use check_nrpe to execute
the reboot bat file on the win server when it is necessary, f.e. with an
eventhandler script.

Kind regards,

ludo


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza
Sent: donderdag 4 augustus 2005 17:17
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] RE: run a script based on event??

I know that this isn't the best place to ask this sort of question...but
id 
be greatfull for any advice/help!!!

I need a way to shutdown remote windows servers through an event handler
in 
nagios...i dont quiet know how to write a script (whether it be perl or 
bash) which will allow me to do this.  the way i understand it is there 
currently isnt a way to run a windwos command in linux.

I can quiet easily run the shutdown command from a windows box to
shutdown a 
remote windows machine...but becuase nagios runs in linux i need a way
to 
shutdown windows machines from linux.

Any ideas????

>From: "Marc Powell" <marc at ena.com>
>To: <nagios-users at lists.sourceforge.net>
>Subject: [Nagios-users] RE: run a script based on event??
>Date: Wed, 3 Aug 2005 10:08:47 -0500
>
>
>
> > -----Original Message-----
> > From: HP Geeza [mailto:getbacktome3 at hotmail.com]
> > Sent: Wednesday, August 03, 2005 10:01 AM
> > To: Marc Powell; nagios-users at lists.sourceforge.net
> > Subject: run a script based on event??
> >
> > HI
> >
> > I was wondering if this is possible and whether anybody has tried
it?
>- I
> > am
> > monitoring the temperature probe in our lab via snmp...and as a
result
>i
> > was
> > wondering whether it is possible in nagios to run a script of some
>sort
> > (which will probably contain some sort of shutdown command) when the
> > temperature triggers an event i.e when it goes above a certain
>threshold.
> >
> > I would like to do this because if the AC busts and our lab starts
to
> > overheat then i would like nagios to run a script which will turn
off
>some
> > of the machines?
>
>Oddly enough they're called event handlers.
>
>http://nagios.sourceforge.net/docs/1_0/eventhandlers.html
>
>--
>Marc
>
>p.s. Please don't e-mail me directly. Even though I participate a lot
>here, I'm not dedicated Nagios support ;)
>
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
>_______________________________________________
>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

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now!  
http://toolbar.msn.co.uk/



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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