add some ASA support, clean up polling, clean up MAC table generation, add ARP table

git-svn-id: http://www.observium.org/svn/observer/trunk@467 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-09-18 09:11:52 +00:00
parent bfc9f845ce
commit 0ceb70014f
14 changed files with 125 additions and 118 deletions

View File

@@ -1,6 +1,27 @@
<?php
function formatMac($mac) {
$mac = preg_replace("/(..)(..)(..)(..)(..)(..)/", "\\1:\\2:\\3:\\4:\\5:\\6", $mac);
return $mac;
}
function ifNameDescr ($interface, $device) {
echo($device['os']);
if(!$config['ifname'][$device['os']]) {
$interface['label'] = $interface['ifDescr'];
} else {
$interface['label'] = $interface['ifName'];
}
# unset ($interface['ifDescr']);
# unset ($interface['ifName']);
return $interface;
}
$rewrite_entSensorType = array (
'celsius' => 'C',
'unknown' => '',