mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir..
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
|
||||
if ($device['os'] == 'apc') {
|
||||
$oids = snmp_get($device, '1.3.6.1.4.1.318.1.1.1.2.2.2.0', '-OsqnU', '');
|
||||
if ($debug) {
|
||||
echo $oids."\n";
|
||||
}
|
||||
d_echo($oids."\n");
|
||||
|
||||
if ($oids) {
|
||||
echo 'APC UPS Internal ';
|
||||
@@ -77,10 +75,8 @@ if ($device['os'] == 'apc') {
|
||||
$set_oids = snmp_get($device, '1.3.6.1.4.1.318.1.1.13.2.2.4.0', '-OsqnU', '');
|
||||
|
||||
$oids = snmp_get($device, '1.3.6.1.4.1.318.1.1.13.2.2.10.0', '-OsqnU', '');
|
||||
if ($debug) {
|
||||
echo $set_oids."\n";
|
||||
echo $oids."\n";
|
||||
}
|
||||
d_echo($oids."\n");
|
||||
d_echo($set_oids."\n");
|
||||
|
||||
if ($oids !== false) {
|
||||
echo 'APC Portable Supply Temp ';
|
||||
@@ -103,9 +99,7 @@ if ($device['os'] == 'apc') {
|
||||
|
||||
unset($oids);
|
||||
$oids = snmp_get($device, '1.3.6.1.4.1.318.1.1.13.2.2.12.0', '-OsqnU', '');
|
||||
if ($debug) {
|
||||
echo $oids."\n";
|
||||
}
|
||||
d_echo($oids."\n");
|
||||
|
||||
if ($oids !== false) {
|
||||
echo 'APC Portable Return Temp ';
|
||||
@@ -128,10 +122,7 @@ if ($device['os'] == 'apc') {
|
||||
|
||||
unset($oids);
|
||||
$oids = snmp_get($device, '1.3.6.1.4.1.318.1.1.13.2.2.14.0', '-OsqnU', '');
|
||||
if ($debug) {
|
||||
echo $oids."\n";
|
||||
}
|
||||
|
||||
d_echo($oids."\n");
|
||||
if ($oids !== false) {
|
||||
echo 'APC Portable Remote Temp ';
|
||||
list($oid,$current_raw) = explode(' ', $oids);
|
||||
|
||||
Reference in New Issue
Block a user