diff --git a/html/includes/graphs/mac_acc_total.inc.php b/html/includes/graphs/mac_acc_total.inc.php index 8545bfb78..288d3ecc6 100644 --- a/html/includes/graphs/mac_acc_total.inc.php +++ b/html/includes/graphs/mac_acc_total.inc.php @@ -1,16 +1,15 @@ diff --git a/poll-device.php b/poll-device.php index a09c493ca..b66586feb 100755 --- a/poll-device.php +++ b/poll-device.php @@ -72,10 +72,11 @@ while ($device = mysql_fetch_array($device_query)) { list($a,$b,$c,$d) = explode("\n", shell_exec($snmp_cmdb)); if($b == "0") { $ciscomodel = $a; } if($d == "0") { $ciscomodel = $c; } + $ciscomodel = str_replace("\"","",$ciscomodel); } else { unset($ciscomodel); } $snmpdata = shell_exec($snmp_cmd); -# $snmpdata = preg_replace("/^.*IOS/","", $snmpdata); + #$snmpdata = preg_replace("/^.*IOS/","", $snmpdata); $snmpdata = trim($snmpdata); $snmpdata = str_replace("\"", "", $snmpdata); list($sysUptime, $sysLocation, $sysContact, $sysName) = explode("\n", $snmpdata); diff --git a/poll-mac_accounting.php b/poll-mac_accounting.php index 887065103..b2be7b4f1 100755 --- a/poll-mac_accounting.php +++ b/poll-mac_accounting.php @@ -19,10 +19,15 @@ $oid .= ".".hexdec(substr($mac, 10, 2)); $snmp_cmd = $config['snmpget'] . " -m CISCO-IP-STAT-MIB -O Uqnv -" . $acc['snmpver'] . " -c " . $acc['community'] . " " . $acc['hostname']; - $snmp_cmd .= " cipMacSwitchedBytes.". $acc['ifIndex'] .".input." . $oid; - $snmp_cmd .= " cipMacSwitchedBytes.". $acc['ifIndex'] .".output." . $oid; - $snmp_cmd .= " cipMacSwitchedPkts.". $acc['ifIndex'] .".input." . $oid; - $snmp_cmd .= " cipMacSwitchedPkts.". $acc['ifIndex'] .".output." . $oid; + #$snmp_cmd .= " cipMacSwitchedBytes.". $acc['ifIndex'] .".input." . $oid; + #$snmp_cmd .= " cipMacSwitchedBytes.". $acc['ifIndex'] .".output." . $oid; + #$snmp_cmd .= " cipMacSwitchedPkts.". $acc['ifIndex'] .".input." . $oid; + #$snmp_cmd .= " cipMacSwitchedPkts.". $acc['ifIndex'] .".output." . $oid; + $snmp_cmd .= " cipMacHCSwitchedBytes.". $acc['ifIndex'] .".input." . $oid; + $snmp_cmd .= " cipMacHCSwitchedBytes.". $acc['ifIndex'] .".output." . $oid; + $snmp_cmd .= " cipMacHCSwitchedPkts.". $acc['ifIndex'] .".input." . $oid; + $snmp_cmd .= " cipMacHCSwitchedPkts.". $acc['ifIndex'] .".output." . $oid; + $snmp_output = trim(shell_exec($snmp_cmd));