[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mon
Subject:    Re: one event, two alerts
From:       Jim Trocki <trockij () transmeta ! com>
Date:       2002-11-19 12:05:05
[Download RAW message or body]

On Tue, 19 Nov 2002, Piero Calucci wrote:

> How can I have 2 different alerts for the same event *with*different*timings*?
>
> I want sth like this:
>
> service ping
> 	monitor fping.monitor
> 		alertafter 3
> 		alert mail.alert someone@somewhere
> 		alertafter 10
> 		alert some-other.alert
>
> where mail.alert is called after 3 failures, while some-other alert is called only after 10

the squelch parameters (numalerts, alertevery, alertafter, etc.) are
independent for each period. therefore, you can define two identical
periods with different labels to accomplish what you're asking:

    watch something
	service ping
	    monitor fping.monitor
	    period p1: wd {Sun-Say}
		alertafter 3
		alert mail.alert someone@somewhere
	    period p2: wd {Sun-Say}
		alertafter 10
		alert some-other.alert


_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic