From e250424f277ca550fd2e1b86930e00ee95e9ac37 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Wed, 13 Jan 2010 23:40:07 +0000 Subject: [PATCH] move arp table polling out of cisco mac accounting file, this works on other devices as well - tested on linux/net-snmp and junos git-svn-id: http://www.observium.org/svn/observer/trunk@678 61d68cd4-352d-0410-923a-c4978735b2b8 --- discovery.php | 2 + includes/discovery/arp-table.php | 63 +++++++++++++++++++++ includes/discovery/cisco-mac-accounting.php | 61 -------------------- 3 files changed, 65 insertions(+), 61 deletions(-) create mode 100644 includes/discovery/arp-table.php diff --git a/discovery.php b/discovery.php index f386747fe..ac72df40a 100755 --- a/discovery.php +++ b/discovery.php @@ -80,6 +80,8 @@ while ($device = mysql_fetch_array($device_query)) { ## CDP & LLDP include("includes/discovery/cdp-lldp.inc.php"); + ## ARP Table + include("includes/discovery/arp-table.php"); if($device['os'] == "netscreen") { if ($device['type'] == "unknown") { $device['type'] = 'firewall'; } diff --git a/includes/discovery/arp-table.php b/includes/discovery/arp-table.php new file mode 100644 index 000000000..0ad8cb707 --- /dev/null +++ b/includes/discovery/arp-table.php @@ -0,0 +1,63 @@ + diff --git a/includes/discovery/cisco-mac-accounting.php b/includes/discovery/cisco-mac-accounting.php index e6235e534..a58910f96 100755 --- a/includes/discovery/cisco-mac-accounting.php +++ b/includes/discovery/cisco-mac-accounting.php @@ -1,66 +1,5 @@