add infrastructure to collect status of cisco catalyst 6k crossbar and new state table for entity-mib

git-svn-id: http://www.observium.org/svn/observer/trunk@2723 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-14 18:28:00 +00:00
parent 69e0b770cc
commit 45c6d95501
13 changed files with 2875 additions and 27 deletions

View File

@@ -12,7 +12,9 @@ include("includes/functions.php");
$entry = explode(",", $argv[1]);
print_r($entry);
logfile($argv[1]);
#print_r($entry);
$device = @dbFetchRow("SELECT * FROM devices WHERE `hostname` = ?", array($entry['0']));
@@ -24,6 +26,6 @@ if (!$device['device_id'])
if (!$device['device_id']) { exit; } else { }
$file = $config['install_dir'] . "/includes/snmptrap/".$entry['1'].".inc.php";
if (is_file($file)) { include("$file"); } else { echo("unknown trap ($file)"); exit; }
if (is_file($file)) { include("$file"); } else { echo("unknown trap ($file)"); }
?>