mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
passing all tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (starts_with($sysDescr, array('WatchGuard', '1.3.6.1.4.1.3097.1.5'))) {
|
||||
if (starts_with('WatchGuard Fireware', $sysDescr) || starts_with('.1.3.6.1.4.1.3097.1.5', $sysObjectId)) {
|
||||
$os = 'firebox';
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (starts_with('1.3.6.1.4.1.311.1.1.3', $sysObjectId)) {
|
||||
$os = 'windows';
|
||||
} elseif (str_contains('Windows', $sysDescr)) {
|
||||
if (starts_with('.1.3.6.1.4.1.311.1.1.3', $sysObjectId)) {
|
||||
$os = 'windows';
|
||||
}
|
||||
|
||||
if (str_contains($sysDescr, array('Windows'))) {
|
||||
$os = 'windows';
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (str_contains('NETOS 6.0', $sysDescr) && starts_with($sysObjectId, array('.1.3.6.1.4.1.901.1', '.1.3.6.1.4.1.17373'))) {
|
||||
if (str_contains('NETOS 6.0', $sysDescr)) {
|
||||
$os = 'wxgoos';
|
||||
}
|
||||
|
||||
if (starts_with($sysObjectId, array('.1.3.6.1.4.1.901.1', '.1.3.6.1.4.1.17373'))) {
|
||||
$os = 'wxgoos';
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (str_contains('Xirrus', $sysDescr)) {
|
||||
if (str_contains('ArrayOS', $sysDescr)) {
|
||||
$os = 'xirrus_aos';
|
||||
}
|
||||
if (str_contains($sysDescr, array('Xirrus', 'ArrayOS'))) {
|
||||
$os = 'xirrus_aos';
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (starts_with('ZXR10', $sysDescr)) {
|
||||
if (str_contains($sysDescr, array('ZXR10', 'ZTE Ethernet Switch'))) {
|
||||
$os = 'zxr10';
|
||||
} elseif (str_contains('ZTE Ethernet Switch', $sysDescr)) {
|
||||
$os = 'zxr10';
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (str_contains('.1.3.6.1.4.1.890', $sysObjectId) && (starts_with($sysDescr, array('EG', 'GS')))) {
|
||||
if (starts_with('.1.3.6.1.4.1.890', $sysObjectId) && starts_with($sysDescr, array('ES', 'GS'))) {
|
||||
$os = 'zynos';
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (str_contains('ZyWALL', $sysDescr)) {
|
||||
$os = 'zywall';
|
||||
} elseif (starts_with('.1.3.6.1.4.1.890.1.15', $sysObjectId)) {
|
||||
if (starts_with('ZyWALL 2X', $sysDescr)) {
|
||||
$os = 'zywall';
|
||||
}
|
||||
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.890.1.15')) {
|
||||
$os = 'zywall';
|
||||
}
|
||||
Reference in New Issue
Block a user