From b931e5d5c7ebcc80d9354e460cce43b0ae4c46eb Mon Sep 17 00:00:00 2001 From: Alan Gregory Date: Wed, 15 Jul 2015 11:50:42 -0300 Subject: [PATCH] Added PowerConnect 3548 support --- .../temperatures/powerconnect.inc.php | 71 ++++++++++--------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/includes/discovery/temperatures/powerconnect.inc.php b/includes/discovery/temperatures/powerconnect.inc.php index 8641536f1..2688b6a8b 100644 --- a/includes/discovery/temperatures/powerconnect.inc.php +++ b/includes/discovery/temperatures/powerconnect.inc.php @@ -1,42 +1,45 @@ 1) { - $descr .= " $index"; - } + $descr = "Internal Temperature"; + if (count(explode("\n",$temps)) > 1) { $descr .= " $index"; } - discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, $type, $descr, $divisor, $multiplier, null, null, null, null, $current); + discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, $type, $descr, $divisor, $multiplier, NULL, NULL, NULL, NULL, $current); } - }//end switch -}//end if + } +}