2013-01-18 20:38:59 +00:00
|
|
|
{
|
2013-04-07 10:56:03 +00:00
|
|
|
/* An example alert configuration. See the EcAlerter documentation for
|
2013-01-18 20:38:59 +00:00
|
|
|
* details on what you can configure here.
|
|
|
|
*/
|
2013-04-07 10:56:03 +00:00
|
|
|
Debug = NO; /* Defaults ... do not log email alerts sent */
|
|
|
|
|
|
|
|
/* Default setup is to alert for high priority alarms but not
|
|
|
|
* send out reminders ... if reminders are required, set the
|
|
|
|
* interval to a resonable level.
|
|
|
|
*/
|
|
|
|
AlertAlarmThreshold = 2; /* Send alerts for critical and major alarms */
|
|
|
|
AlertReminderInterval = 0; /* Do not send out reminder alerts */
|
|
|
|
|
|
|
|
/* The default email configuration is usual;ly correct for ht host and
|
|
|
|
* port but almost always wrong for the sender address ... edit it!
|
|
|
|
*/
|
|
|
|
EmailFrom = "alerter.test@localhost.localdomain";
|
|
|
|
EmailHost = "127.0.0.1";
|
|
|
|
EmailPort = "25";
|
|
|
|
|
|
|
|
Rules = (
|
|
|
|
|
|
|
|
/* We start by adding rules to handle alerts about alarms, by adding
|
|
|
|
* some extra text to the basic alarm message.
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
SeverityText = "..*"; /* Any alert with an alarm severity */
|
|
|
|
DurationAbove = "59"; /* Alarm outstanding for an hour or more */
|
|
|
|
Rewrite = "{Original}\n\nAlarm outstanding for {Hours} hours.";
|
|
|
|
},
|
|
|
|
{
|
2013-04-07 11:38:46 +00:00
|
|
|
SeverityText = "..*";
|
2013-04-07 10:56:03 +00:00
|
|
|
DurationBelow = "60"; /* Alarm outstanding for under an hour */
|
|
|
|
Rewrite = "{Original}\n\nAlarm outstanding for {Minutes} minutes.";
|
|
|
|
},
|
2013-04-07 11:38:46 +00:00
|
|
|
{
|
|
|
|
SeverityText = "..*";
|
|
|
|
Subject = "Alarm {Identifier}";
|
|
|
|
Email = (
|
|
|
|
"myaccount@localhost.localdomain"
|
|
|
|
);
|
|
|
|
Stop = YES; /* Don't go on to any general alerts */
|
|
|
|
},
|
|
|
|
|
2013-04-07 10:56:03 +00:00
|
|
|
{
|
|
|
|
SeverityCode = "5"; /* Any alert for a cleared alarm */
|
|
|
|
DurationAbove = "59"; /* Alarm outstanding for an hour or more */
|
|
|
|
Rewrite = "{Original}\n\nCleared after {Hours} hours.";
|
|
|
|
},
|
|
|
|
{
|
2013-04-07 11:38:46 +00:00
|
|
|
SeverityCode = "5";
|
2013-04-07 10:56:03 +00:00
|
|
|
DurationBelow = "60"; /* Alarm outstanding for under an hour */
|
|
|
|
Rewrite = "{Original}\n\nCleared after {Minutes} minutes.";
|
|
|
|
},
|
|
|
|
{
|
2013-04-07 11:38:46 +00:00
|
|
|
SeverityText = "5";
|
|
|
|
Subject = "Clear {Identifier}";
|
2013-04-07 10:56:03 +00:00
|
|
|
Email = (
|
|
|
|
"myaccount@localhost.localdomain"
|
|
|
|
);
|
|
|
|
Stop = YES; /* Don't go on to any general alerts */
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
/* Fallback rule ... there are no 'matching' fields in this
|
|
|
|
* rule, so it matches any message which has not already been
|
|
|
|
* matched by a rule containing 'Stop=YES'
|
|
|
|
* All previously unmatched messages get emailed.
|
|
|
|
*/
|
|
|
|
Email = (
|
|
|
|
"myaccount@localhost.localdomain"
|
|
|
|
);
|
|
|
|
/* Log all alerts.
|
|
|
|
*/
|
|
|
|
Log = ("file:alertlog");
|
|
|
|
}
|
|
|
|
);
|
2013-01-18 20:38:59 +00:00
|
|
|
}
|