mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
added a bunch of device types to discover
git-svn-id: http://www.observium.org/svn/observer/trunk@1363 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -105,7 +105,7 @@ function getHostOS($device)
|
||||
$dir_handle = @opendir($config['install_dir'] . "/includes/osdiscovery") or die("Unable to open $path");
|
||||
while ($file = readdir($dir_handle))
|
||||
{
|
||||
if ( preg_match("/^discover-([a-z0-9\-]*).php/", $file) )
|
||||
if ( preg_match("/^discover-([a-z0-9\-]*).php$/", $file) )
|
||||
{
|
||||
include($config['install_dir'] . "/includes/osdiscovery/" . $file);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "APC Web/SNMP Management Card")) { $os = "apc"; }
|
||||
else if(strstr($sysDescr, "APC Switched Rack PDU")) { $os = "apc"; }
|
||||
else if(strstr($sysDescr, "APC MasterSwitch PDU")) { $os = "apc"; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
|
||||
if (preg_match("/AXIS.*Network Camera/", $sysDescr)) { $os = "axiscam"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Dell Out-of-band SNMP Agent for Remote Access Controller")) { $os = "drac"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,7 +3,8 @@
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "JETDIRECT")) { $os = "jetdirect"; }
|
||||
else if(strstr($sysDescr, "HP ETHERNET MULTI-ENVIRONMENT,")) { $os = "jetdirect"; }
|
||||
else if(strstr($sysDescr, "HP ETHERNET MULTI-ENVIRONMENT")) { $os = "jetdirect"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "MGE Switched PDU")) { $os = "mgepdu"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,6 +3,7 @@
|
||||
if(!$os) {
|
||||
|
||||
if(strpos($sysDescr, "TG585v7") !== FALSE) { $os = "speedtouch"; }
|
||||
else if(strpos($sysDescr, "SpeedTouch 5") !== FALSE) { $os = "speedtouch"; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -101,9 +101,14 @@ $config['os']['powerconnect']['text'] = "Dell PowerConnect";
|
||||
$config['os']['powerconnect']['ifname'] = 1;
|
||||
$config['os']['powerconnect']['type'] = "network";
|
||||
|
||||
$config['os']['powervault']['text'] = "Dell PowerVault";
|
||||
$config['os']['powervault']['text'] = "Dell PowerVault";
|
||||
|
||||
$config['os']['gamatronicups']['text'] = "Gamatronic UPS Stack";
|
||||
$config['os']['drac']['text'] = "Dell DRAC";
|
||||
|
||||
$config['os']['axiscam']['text'] = "AXIS Network Camera";
|
||||
|
||||
$config['os']['gamatronicups']['text'] = "Gamatronic UPS Stack";
|
||||
$config['os']['gamatronicups']['type'] = "power";
|
||||
|
||||
$config['os']['airport']['type'] = "network";
|
||||
$config['os']['airport']['text'] = "Apple AirPort";
|
||||
@@ -132,6 +137,9 @@ $config['os']['mgeups']['overgraph'][] = "device_current";
|
||||
$config['os']['mgeups']['overtext'] = "Current";
|
||||
$config['os']['mgeups']['type'] = "power";
|
||||
|
||||
$config['os']['mgepdu']['text'] = "MGE PDU";
|
||||
$config['os']['mgepdu']['type'] = "power";
|
||||
|
||||
$config['os']['apc']['text'] = "APC Management Module";
|
||||
$config['os']['apc']['overgraph'][] = "device_current";
|
||||
$config['os']['apc']['overtext'] = "Current";
|
||||
|
||||
Reference in New Issue
Block a user