From d5fd2c8b0270559ebe0d98e0b756aa9bd9913739 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 2 May 2017 14:25:01 +0200 Subject: indicate affected service if available --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index bb3ef83..357fcf5 100644 --- a/it.class +++ b/it.class @@ -230,7 +230,7 @@ static function error($p = array()) if ($sendmail) # we're mailing: send maximum info { - $p['title'] = "Alert: " . $p['title'] . " (via " . getenv('HOSTNAME') . ")"; + $p['title'] = "Alert: " . it::replace(['\.[^:]*' => "", 'alert: ' => "", "^: " => ""], $GLOBALS['ULTRASITE'] . ": ") . $p['title'] . " (via " . getenv('HOSTNAME') . ")"; if (!$p['omitdebuginfo']) { -- cgit v1.2.3