diff options
author | varac <varacanero@zeromail.org> | 2016-03-11 08:24:38 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-03-11 08:25:50 +0100 |
commit | 11f3c6f95d9492d4943aacb510458fb5a407e9fb (patch) | |
tree | 9a2bd053242ee6857ab6622398abd99b8bdb8e10 /manifests/service/dns_host.pp | |
parent | f062559072e7d4281c114d799208a3d093a74a47 (diff) |
Improve notification mails
The mail subject line is too long for some mail clients,
so i removed the $NOTIFICATIONTYPE$ variable from it,
because it is not needed to understand the problem/recovery.
This is an example of a mail send out using this change:
Subject: WARNING - aardwolf: APT
***** Nagios *****
Notification Type: PROBLEM
Host: aardwolf.unstable.bitmask.i (aardwolf)
Address: 199.119.112.205
Service: APT
State: WARNING
Duration: 0d 0h 13m 5s
Date/Time: Fri Jan 15 10:04:55 UTC 2016
Output: WARN - APT WARNING: 20 packages available for upgrade (0 critical updates).
Before it looked like this:
Subject: ** PROBLEM Service Alert: aardwolf/APT is WARNING **
***** Nagios *****
Notification Type: PROBLEM
Service: APT
Host: aardwolf
Address: 199.119.112.205
State: WARNING
Date/Time: Thu Mar 10 21:57:23 UTC 2016
Additional Info:
WARN - APT WARNING: 1 packages available for upgrade (0 critical updates).
Diffstat (limited to 'manifests/service/dns_host.pp')
0 files changed, 0 insertions, 0 deletions