From 08c55bac645213e021ced685f4a4278d469b2dcc Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 5 Jun 2016 21:57:23 -0700 Subject: [PATCH] Include status message in email --- status/monitor.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/status/monitor.pl b/status/monitor.pl index eb800ad02..6d6581512 100755 --- a/status/monitor.pl +++ b/status/monitor.pl @@ -528,8 +528,13 @@ else { $host, $serv->{'desc'}); } elsif ($type eq 'email') { - return &text('monitor_email_'.$suffix, - $host, $serv->{'desc'}, $now)."\n"; + my $rv = &text('monitor_email_'.$suffix, + $host, $serv->{'desc'}, $now)."\n"; + if ($stat->{'desc'}) { + $rv .= &text('monitor_email_stat', + $stat->{'desc'})."\n"; + } + return $rv; } } }