You need to label the periods:
watch AllHosts
service ping
interval 10s
monitor fping.monitor
period p1: wd {Sun-Sat}
alert mail.alert [EMAIL PROTECTED]
upalert mail.alert [EMAIL PROTECTED]
alertafter 5 2m
numalerts 1
period p2: wd {Sun-Sat}
alert mail.alert [email protected]
upalert mail.alert [email protected]
alertafter 5 2m
alertevery 1h
On Tue, 18 Jun 2002, Michael Hoennig wrote:
> Hi!
>
> We are in the process of replacing a simple self-made monitor by mon. And
> it looks really great for the most part.
>
> One of our problems is that we have not found a way to setup an alarm like
> this:
>
> - an email to an email address which sends an SMS, no repeat
> - an email to a normal email address, but repeated every hour
>
> Multiple period statements seem not to work :-(
>
> watch AllHosts
> service ping
> interval 10s
> monitor fping.monitor
> period wd {Sun-Sat}
> alert mail.alert [EMAIL PROTECTED]
> upalert mail.alert [EMAIL PROTECTED]
> alertafter 5 2m
> numalerts 1
> period wd {Sun-Sat}
> alert mail.alert [email protected]
> upalert mail.alert [email protected]
> alertafter 5 2m
> alertevery 1h
>
> Only the last period group is executed, thus we never get alarms on SMS
> or, if switched, never by normal email.
>
> Any hints?
>
> Thanks
> Michael