mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user