Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir..

This commit is contained in:
Mark Schouten
2015-08-21 16:10:01 +02:00
parent 4fa88bb928
commit 677a4f3f5f
89 changed files with 192 additions and 561 deletions
+2 -6
View File
@@ -27,9 +27,7 @@
if (strstr($device['hardware'], 'Dell')) {
// stuff partially copied from akcp sensor
$oids = snmp_walk($device, 'temperatureProbeStatus', '-Osqn', 'MIB-Dell-10892');
if ($debug) {
echo $oids."\n";
}
d_echo($oids."\n");
$oids = trim($oids);
if ($oids) {
@@ -40,9 +38,7 @@ if (strstr($device['hardware'], 'Dell')) {
$data = trim($data);
if ($data) {
list($oid,$status) = explode(' ', $data, 2);
if ($debug) {
echo 'status : '.$status."\n";
}
d_echo('status : '.$status."\n");
if ($status == 'ok') {
// 2 = normal, 0 = not connected