From afe3a25738deccceeeef02b72fb1e8b4c84e04f2 Mon Sep 17 00:00:00 2001 From: TheMysteriousX Date: Fri, 27 May 2022 15:07:29 +0100 Subject: [PATCH] Use display name when sending alerts to Sensu (#13967) * Use display name when sending alerts to Sensu * system->hostname should always be an FQDN or IP --- LibreNMS/Alert/Transport/Sensu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Alert/Transport/Sensu.php b/LibreNMS/Alert/Transport/Sensu.php index b39222424f..c9ae45e531 100644 --- a/LibreNMS/Alert/Transport/Sensu.php +++ b/LibreNMS/Alert/Transport/Sensu.php @@ -177,7 +177,7 @@ class Sensu extends Transport public static function getEntityName($obj, $key) { if ($key === 'shortname') { - return Sensu::shortenName($obj['hostname']); + return Sensu::shortenName($obj['display']); } return $obj[$key];