run a script based on event??

HP Geeza getbacktome3 at hotmail.com
Thu Aug 4 17:16:37 CEST 2005


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





More information about the Users mailing list