mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
9
includes/discovery/os/avocent.inc.php
Normal file
9
includes/discovery/os/avocent.inc.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^Avocent/", $sysDescr)) { $os = "avocent"; }
|
||||
if (preg_match("/^AlterPath/", $sysDescr)) { $os = "avocent"; }
|
||||
}
|
||||
|
||||
?>
|
||||
10
includes/polling/os/avocent.inc.php
Normal file
10
includes/polling/os/avocent.inc.php
Normal 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));
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user