<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Henrik Stoerner wrote:<br>
<br>
Henrik,<br>
<br>
This will work nicely, but I also realized something else...while the
IGNORE option will indeed ignore the alert, the main display will still
show red for that service.  So while no pages may go out, anyone who
monitors the page visually will still think there is a problem. <br>
<br>
The optimal soultion I think, would be a "MAINT" option, where you
could specify time periods that a host and or service automatically
goes into maintenance mode.  This way no pages go out, and the display
has the proper visual indication that the host has been
administratively disabled. Something like:<br>
MAINT HOST=dataproc1.mydomain.com SERVICE=cpu TIME=*:0600:1000<br>
<br>
It might even be nice to be able to tack on a REASON="Some reason
here", that gets put on the maint page, but if that is too difficult
could just use a generic reason like "administratively disabled".<br>
<br>
-Charles<br>
<br>
<blockquote cite="mid20051026171317.GA9241@hswn.dk" type="cite">
  <blockquote type="cite">
    <pre wrap="">Note: the way I handle this in BigBrother is via an exclude rule, 
basically when you define a rule with a ! in front of it, it removes 
that host/service from the FINAL match list.  Hopefully you can 
implement something in Hobbit for a similar effect.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
What I've done now (you can grab it from the snapshot that is generated
later tonight - 5 hours from now) would allow you to setup those rules
like this:

# Default rule (1)
HOST=$ALL_HOSTS SERVICE=* COLOR=red
        # Ignore "cpu" alerts from dataproc1 in the morning
        IGNORE HOST=dataproc1.mydomain.com SERVICE=cpu TIME=*:0600:1000
        # During office hours, alert to the mailbox.
        MAIL <a class="moz-txt-link-abbreviated" href="mailto:alert@mydomain.com">alert@mydomain.com</a> TIME=*:0800:1700
        # Outside office hours, mail alerts to a different address (4)
        MAIL <a class="moz-txt-link-abbreviated" href="mailto:alternate@mydomain.com">alternate@mydomain.com</a> TIME=*:1700:0800
        # Outside office hours, send to my cell phone (5)
        MAIL <a class="moz-txt-link-abbreviated" href="mailto:mycell@cellphone.com">mycell@cellphone.com</a> FORMAT=sms DURATION>30 TIME=*:1700:0800

"IGNORE" is a special recipient definition - like MAIL and SCRIPT - so
you can apply all of the host-, service- and time-filters etc to it.
If the IGNORE recipient triggers, it doesn't trigger an alert - and it
stops Hobbit looking for more recipients (like the STOP flag).
  </pre>
</blockquote>
<br>
</body>
</html>