From e00f4a81639d6c50a6c3c7e03cd0144a46f896d7 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 4 Feb 2010 16:30:41 +0000 Subject: [PATCH] more debugging git-svn-id: http://www.observium.org/svn/observer/trunk@760 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/bgp-peers.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/discovery/bgp-peers.php b/includes/discovery/bgp-peers.php index 6e05fd7cc5..d4aed05599 100755 --- a/includes/discovery/bgp-peers.php +++ b/includes/discovery/bgp-peers.php @@ -81,7 +81,9 @@ if (isset($peerlist)) unset($af_list); $af_cmd = $config['snmpwalk'] . " -CI -m CISCO-BGP4-MIB -OsQ -" . $device['snmpver'] . " -c" . $device['community'] . " " . $device['hostname'].":".$device['port'] . " "; $af_cmd .= "cbgpPeerAddrFamilyName." . $peer['ip']; - $afs = trim(str_replace("cbgpPeerAddrFamilyName.".$peer['ip'].".", "", `$af_cmd`)); + $af_data = shell_exec($af_cmd); + if($debug) { echo("afi data :: $af_data \n"); } + $afs = trim(str_replace("cbgpPeerAddrFamilyName.".$peer['ip'].".", "", $af_data)); foreach (explode("\n", $afs) as $af) { if($debug) { echo("AFISAFI = $af\n"); }