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:
Adam Amstrong
2012-05-10 12:10:07 +00:00
parent 6a0bfe288c
commit b25f647b2d
3 changed files with 19 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -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";

View 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"; }
}
?>