Xymon Mailing List Archive search

fine grained alerts

2 messages in this thread

list Kris Springer · Fri, 28 Dec 2018 11:16:32 -0700 ·
In my alerts.cfg I've got a PAGE setting that is working well, but I want to fine tune one of the HOSTS to reduce the frequency of alerts for the DISK service.  But now I'm getting 2 alerts for the Disk service for that host.  I thought the HOST rule would overrule the PAGE rule since it comes first.  How do I configure this correctly so I still get all the service alerts as normal for the page, but the disk service for the single host repeats every 4 hours instead of the default 30 min?  Here's what I have.
• **HOST=CloudBox-2**
**      MAIL user-5f117c3bafe5@xymon.invalid SERVICE=disk COLOR=red,purple DURATION>1h RECOVERED REPEAT=4h**
**
**PAGE=CLOUDBOXES**
**      MAIL user-5f117c3bafe5@xymon.invalid COLOR=red,purple DURATION>1h RECOVERED REPEAT=30m*

-- 

Kris Springer
list Lars Kollstedt · Sat, 29 Dec 2018 01:11:32 +0100 ·
Am Freitag, 28. Dezember 2018, 11:16:32 CET schrieb Kris Springer:
quoted from Kris Springer
In my alerts.cfg I've got a PAGE setting that is working well, but I
want to fine tune one of the HOSTS to reduce the frequency of alerts for
the DISK service.  But now I'm getting 2 alerts for the Disk service for
that host.
[...]


Hi Kris,

all filtering statements can be also used with an preceding EX.

e.g.:
| HOST=CloudBox-2**
|      MAIL user-5f117c3bafe5@xymon.invalid SERVICE=disk COLOR=red,purple DURATION>1h \
|      RECOVERED REPEAT=4h
|
| PAGE=CLOUDBOXES** EXHOST=CloudBox-2**
|      MAIL user-5f117c3bafe5@xymon.invalid COLOR=red,purple DURATION>1h RECOVERED \
|      REPEAT=30m*

You might also have a look at the STOP keyword, that should produce the 
behaviour you expected without it. STOP isn't the default for all alerting 
rules but IGNORE.

e.g.:
| HOST=CloudBox-2**
|      MAIL user-5f117c3bafe5@xymon.invalid SERVICE=disk COLOR=red,purple DURATION>1h \
|      RECOVERED REPEAT=4h STOP
|
| PAGE=CLOUDBOXES**
|      MAIL user-5f117c3bafe5@xymon.invalid COLOR=red,purple DURATION>1h RECOVERED \
|      REPEAT=30m*


For more information about this rules "man alerts.cfg" should be your friend. 
;-)

Kind regards,
	Lars

-- 
Lars Kollstedt

Telefon: +49 6151 16-71027
E-Mail:  user-0f90394071da@xymon.invalid

man-da.de GmbH
Dolivostraße 11
64293 Darmstadt

Sitz der man-da.de GmbH: Darmstadt
Amtsgericht Darmstadt, HRB 9484
Geschäftsführer: Andreas Ebert