[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
global alert statement
From: |
Martin |
Subject: |
global alert statement |
Date: |
Fri, 31 Oct 2003 13:40:40 +0100 |
Hi,
here is implementation of global alert statement. It allows to define global
list of alert recipients with optinal custom message format and event selection
list (as usual in per service alert definition).
In the case of any event on any monitored service monit will send the alert to
this recipient list in addition to the mailinglist defined by the service
localy (conjunction). If the same recipient is defined twice (globaly and
localy), monit will send only one alert. Localy (per service) defined alert
recipient overrides global recipient in the case of conflict.
The syntax is the same as normal alert statement, the only exception is that it
is prefixed by 'set' word (like other global variables). More then one instance
of this statement is allowed, so you can write for example:
set alert address@hidden #receive all events of all services
set alert address@hidden on { uid, gid, checksum, permission, timeout }
#receive security events of all services
...
check file myfile with path /my/file
if timestamp > 15 minute then alert
alert address@hidden #receive all events of this service
alert address@hidden on { timestamp } with mail-format { subject: Alarm! }
#overrides global registration
check file yourfile with path /your/file
if timestamp changed then alert
alert address@hidden #receive all events of this service
check file theirfile with path /their/file #there is no local recipient
definition
if timestamp changed then alert
If you agree, i will check it in.
TODO: documentation
Martin
global_alert.patch.gz
Description: application/gzip-compressed
- global alert statement,
Martin <=