From 141b14aa166e8fe45d0530d52ef3454f0d661e3a Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 6 Apr 2012 17:41:51 +0000 Subject: [PATCH] fix unix agent and add cymru fullbogons feed ASN git-svn-id: http://www.observium.org/svn/observer/trunk@2975 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/defaults.inc.php | 1 + includes/polling/unix-agent.inc.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 796e2db17..14d7169ec 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -365,6 +365,7 @@ $config['auth_ldap_groups']['pfy']['level'] = 7; $config['auth_ldap_groups']['support']['level'] = 1; ### Hardcoded ASN descriptions +$config['astext'][65332] = "Cymru FullBogon Feed"; $config['astext'][65333] = "Cymru Bogon Feed"; ### Warnings on front page diff --git a/includes/polling/unix-agent.inc.php b/includes/polling/unix-agent.inc.php index fac5b6411..8d6b83d98 100755 --- a/includes/polling/unix-agent.inc.php +++ b/includes/polling/unix-agent.inc.php @@ -10,8 +10,7 @@ $agent = fsockopen($device['hostname'], $port, $errno, $errstr, 10); if(!$agent) { - echo "failed"; - exit(); + echo "Connection to UNIX agent failed on port ".$port."."; } else { while (!feof($agent)) {