mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow uppercased interface name used in Cisco SG350X models (#9178)
This commit is contained in:
committed by
Tony Murray
parent
387a79e297
commit
df31b02036
@@ -39,7 +39,7 @@ if (is_array($temp)) {
|
||||
foreach ($temp as $index => $entry) {
|
||||
$port_descr = get_port_by_index_cache($device['device_id'], str_replace('1.', '', $index));
|
||||
$descr = $port_descr['ifDescr'] . ' Suspended Status';
|
||||
if (str_contains($descr, 'ethernet')) {
|
||||
if (str_contains($descr, ['ethernet','Ethernet'])) {
|
||||
//Discover Sensors
|
||||
discover_sensor($valid['sensor'], 'state', $device, $cur_oid . $index, $index, $state_name, $descr, '1', '1', null, null, null, null, $temp[$index]['swIfOperSuspendedStatus'], 'snmp', $index);
|
||||
|
||||
|
Reference in New Issue
Block a user