anyone done this before?

BOLLENGIER Eric ebollengier at sigma.fr
Thu Jun 16 15:52:45 CEST 2005


Hi,

You can look on nagiosexchange, mayday project
mayday_verif.pl does what you want

http://www.nagiosexchange.org/Frontends.37.0.html?&tx_netnagext_pi1[p_view]=250

Bye


Le Wednesday 15 June 2005 21:57, Bob Eckhardt a écrit :
> Thx all for the replies. I used the info gathered from the link Marc
> was so kind to post (http://www.nagios.org/faqs/viewfaq.php?faq_id=66)
> and wrote this if anyone wants it....simple but effective
>
> ####################
> #!/bin/csh
> setenv WHATSOFF_SERVICE `cat /opt/nagios/var/status.log | grep SERVICE |
> awk -F";" '{ if ($10 == 0) { printf("%s\t%s SERVICE check is turned
> off\n\r", $2, $3)}}'`
> setenv WHATSOFF_HOST `cat /opt/nagios/var/status.log | grep HOST | awk
> -F";" '{ if ($14 == 0) { printf("%s HOST check is turned off\n\r", $2)}}'`
>
> if ("$WHATSOFF_SERVICE" != "") then
>    echo "$WHATSOFF_SERVICE"  | mail -s "service checks turned off on
> nagios" towhomitmayconcern at mymailserver.com
> endif
>
> if ("$WHATSOFF_HOST" != "") then
>    echo "$WHATSOFF_HOST"  | mail -s "host checks turned off on nagios"
> towhomitmayconcern at mymailserver.com
> endif
> ########################
>


-------------------------------------------------------
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





More information about the Users mailing list