mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
supermicro switch icon and detection
git-svn-id: http://www.observium.org/svn/observer/trunk@3161 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
BIN
html/images/os/supermicro.png
Normal file
BIN
html/images/os/supermicro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@@ -310,6 +310,15 @@ $config['os'][$os]['text'] = "ZTE ZXR10";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['icon'] = "zte";
|
||||
|
||||
## Supermicro Switch
|
||||
|
||||
$os = "supermicro-switch";
|
||||
$config['os'][$os]['group'] = "supermicro";
|
||||
$config['os'][$os]['text'] = "Supermicro Switch";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['icon'] = "supermicro";
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
|
||||
# Juniper
|
||||
|
||||
$os = "junos";
|
||||
|
10
includes/discovery/os/supermicro-switch.inc.php
Normal file
10
includes/discovery/os/supermicro-switch.inc.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^Supermicro Switch/", $sysDescr)) { $os = "supermicro-switch"; }
|
||||
else if (preg_match("/^SSE-/", $sysDescr)) { $os = "supermicro-switch"; }
|
||||
else if (preg_match("/^SBM-/", $sysDescr)) { $os = "supermicro-switch"; }
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user