fixes and advocent discovery

git-svn-id: http://www.observium.org/svn/observer/trunk@2712 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-03 12:26:45 +00:00
parent ba703fd86f
commit 8b82c99ca9
5 changed files with 39 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
<?php
if (!$os)
{
if (preg_match("/^Avocent/", $sysDescr)) { $os = "avocent"; }
if (preg_match("/^AlterPath/", $sysDescr)) { $os = "avocent"; }
}
?>

View File

@@ -0,0 +1,10 @@
<?php
if (strstr($poll_device[sysDescr], "AlterPath")) {
list($hardware, $version) = explode("-", trim(str_replace("version:", "", (str_replace("V_", "", $poll_device[sysDescr])))), 2);
$hardware = trim($hardware);
$version = trim($version);
$features = trim(str_replace("#1", "", $version));
}
?>

View File

@@ -34,7 +34,6 @@ $config['os'][$os]['over'][2]['graph'] = "device_mempool";
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
### Linux-based OSes here please.
$os = "linux";
@@ -67,6 +66,7 @@ $config['os'][$os]['over'][1]['text'] = "Processor Usage";
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
### Other Unix-based OSes here please.
$os = "freebsd";
@@ -775,6 +775,11 @@ $config['os'][$os]['over'][0]['graph'] = "device_current";
$config['os'][$os]['over'][0]['text'] = "Current";
$config['os'][$os]['icon'] = "tripplite";
$os = "avocent";
$config['os'][$os]['text'] = "Avocent";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['icon'] = "avocent";
$os = "symbol";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['text'] = "Symbol AP";