On Mon, Oct 08, 2001 at 12:52:39PM +1000, Steve Micallef wrote:
> Hi all,
> 
> I've come across a problem in using mon, specifically to do with the
> receiving of Up alerts.
> 
> My mon configuration:
> 
> [ snip ]
> 
> maxprocs    = 100
> histlength = 100
> randstart = 60s
> dtlogging = yes
> dtlogfile = /var/log/mon_dtlog
> syslog_facility = mail
> 
> hostgroup XXXX 1.2.3.4 5.6.7.8 9.10.11.12 13.14.15.16
> 
> watch XXXX
>     service XXXX
>     description XXXXX
>         interval 5m
>         monitor XXXX.monitor
>         period wd {Mon-Sun}
>                 alert mail.alert [EMAIL PROTECTED]
>                 upalert mail.alert [EMAIL PROTECTED]
>                 alert db.alert
>                 upalert db.alert
>                 alertevery 1h
> 
> [ snip ]

You cannot have multiple alert/upalert entries within one period.
But it is fine to have several _named_ period definitions.
Here is an example from our mon.cf:

watch switches
    service ping
        description Ethernet switche in Bielefeld
        interval 5m
        monitor icmp.monitor
        period MAIL: wd {Sun-Sat}
            alertevery 1h summary
            alertafter 2
            comp_alerts
            alert mail.alert [EMAIL PROTECTED]
            upalert mail.alert [EMAIL PROTECTED]
        period SMS: wd {Sun-Sat}
            alertevery 1h summary
            alertafter 2
            comp_alerts
            alert sms.alert 01778xxx 01778xxx
            upalert sms.alert 01778xxx 01778xxx

Of course it would be nice, if the mon server would accept your
configuration too.

-- 
 Alles Gute / best wishes  
     Dietmar Goldbeck                E-Mail: [EMAIL PROTECTED]
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
Civilization?  Gandhi: I think it would be a good idea.

Reply via email to