mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Handle health sensors with underscores in the name. (#10123)
This commit is contained in:
committed by
PipoCanaja
parent
b8c4f38fb5
commit
af5377e06c
@ -803,7 +803,7 @@ function list_available_health_graphs()
|
||||
$device_id = ctype_digit($hostname) ? $hostname : getidbyname($hostname);
|
||||
check_device_permission($device_id);
|
||||
if (isset($router['type'])) {
|
||||
list($dump, $type) = explode('_', $router['type']);
|
||||
list($dump, $type) = explode('device_', $router['type']);
|
||||
}
|
||||
$sensor_id = $router['sensor_id'] ?: null;
|
||||
$graphs = array();
|
||||
|
Reference in New Issue
Block a user