From d3bdc73f5ac822f0e4fb904708e9482fc25e8089 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 1 Apr 2012 16:50:42 +0000 Subject: [PATCH] remove battery status from areca controller voltages git-svn-id: http://www.observium.org/svn/observer/trunk@2942 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/voltages/areca.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/voltages/areca.inc.php b/includes/discovery/voltages/areca.inc.php index 648e3bde49..4bd8996530 100644 --- a/includes/discovery/voltages/areca.inc.php +++ b/includes/discovery/voltages/areca.inc.php @@ -18,7 +18,7 @@ if ($device['os'] == "areca") $index = $split_oid[count($split_oid)-1]; $oid = "1.3.6.1.4.1.18928.1.2.2.1.8.1.3." . $index; $current = snmp_get($device, $oid, "-Oqv", "") / $divisor; - if ($descr != '"Battery Status"') # Battery Status is charge percentage, or 255 when no BBU + if (trim($descr,'"') != 'Battery Status') # Battery Status is charge percentage, or 255 when no BBU { discover_sensor($valid['sensor'], 'voltage', $device, $oid, $index, $type, trim($descr,'"'), $divisor, '1', NULL, NULL, NULL, NULL, $current); }