mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
fix?
git-svn-id: http://www.observium.org/svn/observer/trunk@2385 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
## FIXME -- we're walking, so we can discover here too.
|
## FIXME -- we're walking, so we can discover here too.
|
||||||
|
|
||||||
$cip_oids = array('cipMacHCSwitchedBytes', 'cipMacHCSwitchedPkts');
|
$cip_oids = array('cipMacHCSwitchedBytes', 'cipMacHCSwitchedPkts');
|
||||||
echo("Caching OID: ");
|
echo("Cisco MAC - Caching OID: ");
|
||||||
$cip_array = array();
|
$cip_array = array();
|
||||||
|
|
||||||
foreach ($cip_oids as $oid)
|
foreach ($cip_oids as $oid)
|
||||||
@@ -63,7 +63,7 @@ foreach ($acc_rows as $acc)
|
|||||||
|
|
||||||
if ($debug) { echo("\n" . $acc['hostname']." ".$acc['ifDescr'] . " $mac -> $b_in:$b_out:$p_in:$p_out "); }
|
if ($debug) { echo("\n" . $acc['hostname']." ".$acc['ifDescr'] . " $mac -> $b_in:$b_out:$p_in:$p_out "); }
|
||||||
|
|
||||||
$rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd")
|
$rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd");
|
||||||
|
|
||||||
if (!is_file($rrdfile))
|
if (!is_file($rrdfile))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user