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
This commit is contained in:
TheMysteriousX
2022-05-27 15:07:29 +01:00
committed by GitHub
parent b66015f54d
commit afe3a25738
+1 -1
View File
@@ -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];