mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
if descr empty, then fill in
This commit is contained in:
@@ -42,6 +42,9 @@ if ($device['os'] == 'ironware') {
|
||||
foreach ($temp as $index => $entry) {
|
||||
//Discover Sensors
|
||||
$descr = $temp[$index]['snChasPwrSupplyDescription'];
|
||||
if (empty($descr)) {
|
||||
$descr = "Power Supply" . $index;
|
||||
}
|
||||
discover_sensor($valid['sensor'], 'state', $device, $cur_oid.$index, $index, $state_name, $descr, '1', '1', null, null, null, null, $temp[$index]['snChasPwrSupplyOperStatus'], 'snmp', $index);
|
||||
|
||||
//Create Sensor To State Index
|
||||
|
||||
Reference in New Issue
Block a user