mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More verbose Alert Detail Fallback (#11153)
* more verbose fallback output detail * update if statemen * Switched Sorry, I typed them backwards :D Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -1008,7 +1008,7 @@ function alert_details($details)
|
||||
if (in_array($k, ['device_id', 'sysObjectID', 'sysDescr', 'location_id'])) {
|
||||
continue;
|
||||
}
|
||||
if (!empty($v) && (stristr($k, 'id') || stristr($k, 'desc') || stristr($k, 'msg')) && substr_count($k, '_') <= 1) {
|
||||
if (!empty($v) && str_i_contains($k, ['id', 'desc', 'msg', 'last'])) {
|
||||
$fault_detail_data[] = "$k => '$v'";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user