From 22f8cfe8e011a6be335aabd35dc6e1b2635f66d3 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 29 Jan 2010 17:09:47 +0000 Subject: [PATCH] Also discover bgp on Linux boxes, this works with quagga's smux snmp plugin using bgp4-mib git-svn-id: http://www.observium.org/svn/observer/trunk@742 61d68cd4-352d-0410-923a-c4978735b2b8 --- discovery.php | 6 ++++++ includes/discovery/bgp-peers.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/discovery.php b/discovery.php index 7caffcbde..5f54b6e98 100755 --- a/discovery.php +++ b/discovery.php @@ -117,6 +117,12 @@ while ($device = mysql_fetch_array($device_query)) { include("includes/discovery/bgp-peers.php"); if ($device['type'] == "unknown") { $device['type'] = 'network'; } # FIXME: could also be a Netscreen... } + + if ($device['os'] == "linux") + { + # Also discover quagga peers + include("includes/discovery/bgp-peers.php"); + } if($device['os'] == "ios" || $device['os'] == "iosxe" || $device['os'] == "catos" || $device['os'] == "asa" || $device['os'] == "pix") { include("includes/discovery/cisco-vlans.php"); diff --git a/includes/discovery/bgp-peers.php b/includes/discovery/bgp-peers.php index 57ec0d5df..99c7ff195 100755 --- a/includes/discovery/bgp-peers.php +++ b/includes/discovery/bgp-peers.php @@ -1,6 +1,6 @@