Duration readout in email notification
Posted: Mon Sep 17, 2018 10:32 am
Hi all, I'm attempting to include a duration readout in an email notification. I've created an email template but do not see a variable for "duration". My commands (notify-host-by-email, notify-service-by-email) appear to be formatted as the old default email template....not my new one.
Here's what I'd like to have work
Here's what I get
Here's what I'd like to have work
Code: Select all
%alertsummary%
Notification Type: %type%
Host: %host%
State: %hoststate% (%HOSTDURATION%)
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%
Respond: %responseurl%
Nagios URL: %xiserverurl%Code: Select all
Nagios has detected a problem with this host.
Notification Type: PROBLEM
Host: CONF-1
State: DOWN (%HOSTDURATION%)
Address: CONF-1
Info: check_icmp: Failed to resolve CONF-1
Date/Time: 2018-09-17 10:11:29