Running Nagios commands from a script...
Leonardo Henrique Machado
leoh at dcc.ufmg.br
Wed Aug 18 17:18:54 CEST 2004
Hello Tim,
disable active checks for your service. The checks will be done by your
script, right? Then you just need to send the result of your script to
your command file (see external commands). Nagios will keep on notifying.
On Wed, 18 Aug 2004, TIM MOORE wrote:
> 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?
>
> Thanks,
>
>
>
> --------------------------------------
> Tim Moore
> DNS/Linux/Cisco Admin
> ODJFS
>
>
--
Leonardo Henrique Machado
Universidade Federal de Minas Gerais
-------------------------------------------------------
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