--On Friday, September 06, 2002 9:12 AM +0200 manuel ZDAN 
<[EMAIL PROTECTED]> wrote:

>
> Hello, I have a problem with the function upalert:  here the script which
> I use:
>     watch acces_page_asp_www
>     service http_integrity
>     interval 4m
>     monitor http_integrity.monitor -u "my_page.asp" -T 10
>     depend <my_depend>
>     period hr {8am-8:45am}
>     alert mail.alert  _mail_admin_
>     alert mailt.alert _sms_mail_
>     alert file.alert _log_
>     upalert mailup.alert _mail_admin_
>     alertafter 3 15m
>
> the probleme is that the upalert starts apart from the period of alarm.
> Why and there you it a solution so that it starts only during the
> programmed time?
> Cordially,
>
> Manual ZDAN.


I'm not 100% certain, but I think the problem is your period definition. 
"hr {8am-8:45am}" is not a valid period.  Unfortunately it looks like 
Time::Period isn't realizing it is an error (which is a bug, but not in 
mon) and is just accepting anything between 8 and 9am as in the period.

The correct way to get the period you want is:
hr {8am} min {0-45}


Does that solve your problem?  Or is it something else?


-David Nolan
 Network Software Developer
 Computing Services
 Carnegie Mellon University

_______________________________________________
Mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to