From add8f9503a67a030dafe56b5bc7cdd967682b728 Mon Sep 17 00:00:00 2001 From: Rosiak Date: Thu, 3 Mar 2016 19:42:11 +0100 Subject: [PATCH] if descr empty, then fill in --- includes/discovery/sensors/states/ironware.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/discovery/sensors/states/ironware.inc.php b/includes/discovery/sensors/states/ironware.inc.php index f16c71a712..02d89a892c 100644 --- a/includes/discovery/sensors/states/ironware.inc.php +++ b/includes/discovery/sensors/states/ironware.inc.php @@ -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