mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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)"); }
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user