mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
debug
git-svn-id: http://www.observium.org/svn/observer/trunk@2388 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -258,7 +258,9 @@ function snmpwalk_cache_cip($device, $oid, $array, $mib = 0)
|
|||||||
$cmd .= " ".$device['transport'].":".$device['hostname'].":".$device['port']." ".$oid;
|
$cmd .= " ".$device['transport'].":".$device['hostname'].":".$device['port']." ".$oid;
|
||||||
|
|
||||||
if (!$debug) { $cmd .= " 2>/dev/null"; }
|
if (!$debug) { $cmd .= " 2>/dev/null"; }
|
||||||
|
if ($debug) { echo("$cmd\n"); }
|
||||||
$data = trim(shell_exec($cmd));
|
$data = trim(shell_exec($cmd));
|
||||||
|
if ($debug) { echo("$data\n"); }
|
||||||
$device_id = $device['device_id'];
|
$device_id = $device['device_id'];
|
||||||
|
|
||||||
#echo("Caching: $oid\n");
|
#echo("Caching: $oid\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user