mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
option to ignore device status (#15697)
* option to ignore device status * . * . * schema update
This commit is contained in:
@@ -90,7 +90,7 @@ class AvailabilityMapController extends WidgetController
|
||||
if (! $settings['show_disabled_and_ignored']) {
|
||||
$device_query->isNotDisabled();
|
||||
}
|
||||
$devices = $device_query->select(['devices.device_id', 'hostname', 'sysName', 'display', 'status', 'uptime', 'last_polled', 'disabled', 'ignore'])->get();
|
||||
$devices = $device_query->select(['devices.device_id', 'hostname', 'sysName', 'display', 'status', 'uptime', 'last_polled', 'disabled', 'ignore', 'ignore_status'])->get();
|
||||
|
||||
// process status
|
||||
$uptime_warn = (int) Config::get('uptime_warning', 86400);
|
||||
@@ -253,6 +253,10 @@ class AvailabilityMapController extends WidgetController
|
||||
return ['disabled', 'blackbg'];
|
||||
}
|
||||
|
||||
if ($device->ignore_status) {
|
||||
return ['ignored-up', 'label-success'];
|
||||
}
|
||||
|
||||
if ($device->ignore) {
|
||||
if (($device->status == 1) && ($device->uptime != 0)) {
|
||||
return ['ignored-up', 'label-success'];
|
||||
|
Reference in New Issue
Block a user