I'm trying to setup Mon with two periods for one watch group.  I'm doing this 
to prevent late night false alarms that are getting rather annoying.  Here's 
what I have in mon.cf:

watch ping
    service ping
        description ping all server, routers, firewalls
        interval 5m
        monitor fping.monitor
        period p1: wd {Mon-Sun} hr {7am-6pm}
            alert mail.alert [EMAIL PROTECTED]
            alert qpage.alert mon
            alertevery 1h
            upalert mail.alert -u [EMAIL PROTECTED]
            upalert qpage.alert -u mon
        period p2: wd {Mon-Sun} hr {7pm-6am}
            alert mail.alert [EMAIL PROTECTED]
            alert qpage.alert mon
            alertafter 2
            alertevery 1h
            upalert mail.alert -u [EMAIL PROTECTED]
            upalert qpage.alert -u mon

I have tested this out and sometimes it does work.  I bring a service down, go 
to the web interface, and it reports Failed (No Alerts Sent).  However, most of 
the time I get an alert.  I have also tried setting the first period to just 
"period:" instead of "period p1:".

Any ideas?

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to