diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-24 08:00:57 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-24 08:00:57 +0000 |
commit | 9ddf2334cbdfce15cc29fd0759418de7a24299d9 (patch) | |
tree | 3b3c94c76b292368d3b9736d7c0c0c200a5ec7b2 /nagios-templates.cfg | |
parent | 543fe5143a892ebaf284227111e7250834256fcf (diff) | |
download | sitesummary-9ddf2334cbdfce15cc29fd0759418de7a24299d9.tar.gz sitesummary-9ddf2334cbdfce15cc29fd0759418de7a24299d9.tar.bz2 sitesummary-9ddf2334cbdfce15cc29fd0759418de7a24299d9.tar.xz |
Provide host-notify-by-email Nagios command as well, to make the documenation in the Debian Edu release manual work.
Diffstat (limited to 'nagios-templates.cfg')
-rw-r--r-- | nagios-templates.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nagios-templates.cfg b/nagios-templates.cfg index 797b56e..b38edfa 100644 --- a/nagios-templates.cfg +++ b/nagios-templates.cfg @@ -43,6 +43,11 @@ define command { command_line /bin/true } +define command { + command_name host-notify-by-email + command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$\nState: $HOSTSTATE$ for $HOSTDURATION$\nAddress: $HOSTADDRESS$\nInfo:\n\n$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $HOSTACKAUTHOR$\nComment: $HOSTACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$ host is $HOSTSTATE$ **" $CONTACTEMAIL$ +} + define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: $SERVICESTATE$ for $SERVICEDURATION$\nAddress: $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ |