more os support

git-svn-id: http://www.observium.org/svn/observer/trunk@1388 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-17 19:20:00 +00:00
parent 36ac9fc83f
commit bb5207c624
7 changed files with 27 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

+1 -1
View File
@@ -2,7 +2,7 @@
if(!$os) {
if(strpos($sysDescr, "ZyXEL IES-") !== FALSE) { $os = "ies"; }
if(strpos($sysDescr, "IES-") !== FALSE) { $os = "ies"; }
}
@@ -0,0 +1,9 @@
<?php
if(!$os) {
if(strstr($sysDescr, "Novell NetWare")) { $os = "netware"; }
}
?>
@@ -0,0 +1,9 @@
<?php
if (!$os) {
if (preg_match("/^ES-/", $sysDescr)) { $os = "zyxeles"; }
}
?>
+8 -1
View File
@@ -27,6 +27,9 @@ $config['os']['netbsd']['text'] = "NetBSD";
$config['os']['dragonfly']['group'] = "unix";
$config['os']['dragonfly']['text'] = "DragonflyBSD";
$config['os']['netware']['text'] = "Novell Netware";
$config['os']['netware']['icon'] = "novell";
$config['os']['monowall']['group'] = "unix";
$config['os']['monowall']['text'] = "m0n0wall";
$config['os']['monowall']['type'] = "firewall";
@@ -120,7 +123,7 @@ $config['os']['dlink']['icon'] = "dlink";
$config['os']['dlinkap']['text'] = "D-Link Access Point";
$config['os']['dlinkap']['type'] = "network";
$config['os']['dlink']['icon'] = "dlink";
$config['os']['dlinkap']['icon'] = "dlink";
$config['os']['axiscam']['text'] = "AXIS Network Camera";
@@ -157,6 +160,10 @@ $config['os']['prestige']['text'] = "ZyXEL Prestige";
$config['os']['prestige']['type'] = "network";
$config['os']['prestige']['icon'] = "zyxel";
$config['os']['zyxeles']['text'] = "ZyXEL Ethernet Switch";
$config['os']['zyxeles']['type'] = "network";
$config['os']['zyxeles']['icon'] = "zyxel";
$config['os']['ies']['text'] = "ZyXEL IES DSLAM";
$config['os']['ies']['type'] = "network";
$config['os']['ies']['icon'] = "zyxel";