diff --git a/includes/polling/bgp-peers.inc.php b/includes/polling/bgp-peers.inc.php index 6f86dd0c2..991c8aa1b 100755 --- a/includes/polling/bgp-peers.inc.php +++ b/includes/polling/bgp-peers.inc.php @@ -149,6 +149,7 @@ if ($config['enable_bgp']) if ($debug) { echo("$cbgp_cmd\n"); } $cbgp_data = preg_replace("/^OID.*$/", "", trim(`$cbgp_cmd`)); + $cbgp_data = preg_replace("/No Such Instance currently exists at this OID/", "0", $cbgp_data); if ($debug) { echo("$cbgp_data\n"); } list($cbgpPeerAcceptedPrefixes,$cbgpPeerDeniedPrefixes,$cbgpPeerPrefixAdminLimit,$cbgpPeerPrefixThreshold,$cbgpPeerPrefixClearThreshold,$cbgpPeerAdvertisedPrefixes,$cbgpPeerSuppressedPrefixes,$cbgpPeerWithdrawnPrefixes) = explode("\n", $cbgp_data); }