Running Nagios commands from a script...

Marc Powell marc at ena.com
Wed Aug 18 17:08:53 CEST 2004



> -----Original Message-----
> From: TIM MOORE [mailto:MOORET10 at ODJFS.STATE.OH.US]
> Sent: Wednesday, August 18, 2004 7:55 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Running Nagios commands from a script...
> 
> I want to run some nagios check commands from inside a shell script.
If I
> run them via command line inside my script, is there a way to tell
nagios
> to email a certain nagios defined contact if the result is below the
> warning or critical level?  I know nagios does this when run through
the
> host or service definitions, but I had problems running checks against
all
> of our servers through nagios.  I can script it to work properly, but
> still want the notifications to work.  Do I have to send my own emails
> from the script depending upon the results or can nagios be triggered
to
> send the email?
> 


Why don't you take a look at the passive checks documentation. I'm not
exactly clear on the limitation you're seeing in nagios but that may
work for you.

--
Marc 



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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