mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes as @laf indications
This commit is contained in:
@@ -10,6 +10,6 @@
|
|||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'BladeCenter Advanced Management Module')) {
|
if (str_contains($sysDescr, 'BladeCenter Advanced Management Module', true)) {
|
||||||
$os = 'ibm-amm';
|
$os = 'ibm-amm';
|
||||||
}
|
}
|
||||||
|
@@ -10,6 +10,6 @@
|
|||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (str_contains($sysDescr, array('IBM Networking Operating System', 'IBM Flex System Fabric', 'IBM Networking OS'))) {
|
if (str_contains($sysDescr, array('IBM Networking Operating System', 'IBM Flex System Fabric', 'IBM Networking OS'), true)) {
|
||||||
$os = 'ibmnos';
|
$os = 'ibmnos';
|
||||||
}
|
}
|
||||||
|
@@ -12,6 +12,6 @@
|
|||||||
|
|
||||||
$ibmtl_snmpget = snmp_get($device, 'SML-MIB::product-Name.0', '-Oqv', '');
|
$ibmtl_snmpget = snmp_get($device, 'SML-MIB::product-Name.0', '-Oqv', '');
|
||||||
|
|
||||||
if (str_contains($ibmtl_snmpget, 'IBM System Storage TS3500 Tape Library')) {
|
if (str_contains($ibmtl_snmpget, 'IBM System Storage TS3500 Tape Library', true)) {
|
||||||
$os = 'ibmtl';
|
$os = 'ibmtl';
|
||||||
}
|
}
|
||||||
|
@@ -4,14 +4,6 @@ if (str_contains($sysDescr, array('Cisco Internetwork Operating System Software'
|
|||||||
$os = 'ios';
|
$os = 'ios';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'IOS-XE')) {
|
|
||||||
$os = 'iosxe';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'IOS XR')) {
|
|
||||||
$os = 'iosxr';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($os)) {
|
if (!empty($os)) {
|
||||||
$extra_mibs = array(
|
$extra_mibs = array(
|
||||||
"ciscoAAASessionMIB" => "CISCO-AAA-SESSION-MIB",
|
"ciscoAAASessionMIB" => "CISCO-AAA-SESSION-MIB",
|
||||||
|
5
includes/discovery/os/iosxe.inc.php
Normal file
5
includes/discovery/os/iosxe.inc.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (str_contains($sysDescr, 'IOS-XE')) {
|
||||||
|
$os = 'iosxe';
|
||||||
|
}
|
5
includes/discovery/os/iosxr.inc.php
Normal file
5
includes/discovery/os/iosxr.inc.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (str_contains($sysDescr, 'IOS XR')) {
|
||||||
|
$os = 'iosxr';
|
||||||
|
}
|
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
if (str_contains($sysDescr, array('JETDIRECT', 'HP ETHERNET MULTI-ENVIRONMENT'))) {
|
if (str_contains($sysDescr, array('JETDIRECT', 'HP ETHERNET MULTI-ENVIRONMENT'))) {
|
||||||
$os = 'jetdirect';
|
$os = 'jetdirect';
|
||||||
}
|
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.11.1')) {
|
||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.11.1')) {
|
|
||||||
$os = 'jetdirect';
|
$os = 'jetdirect';
|
||||||
}
|
}
|
||||||
|
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.2636')) {
|
if (starts_with($sysObjectId, '.1.3.6.1.4.1.2636')) {
|
||||||
$os = 'junos';
|
$os = 'junos';
|
||||||
}
|
} elseif (str_contains($sysDescr, 'kernel JUNOS', true)) {
|
||||||
|
|
||||||
if (str_contains($sysDescr, 'kernel JUNOS')) {
|
|
||||||
$os = 'junos';
|
$os = 'junos';
|
||||||
}
|
}
|
||||||
|
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
if (str_contains($sysDescr, 'EMC SOHO-NAS Storage.')) {
|
if (str_contains($sysDescr, 'EMC SOHO-NAS Storage.')) {
|
||||||
$os = 'lenovoemc';
|
$os = 'lenovoemc';
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($os)) {
|
|
||||||
$lenovoemc_mibs = array(
|
$lenovoemc_mibs = array(
|
||||||
"fanValue" => "IOMEGANAS-MIB",
|
"fanValue" => "IOMEGANAS-MIB",
|
||||||
"tempValue" => "IOMEGANAS-MIB",
|
"tempValue" => "IOMEGANAS-MIB",
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (str_contains($sysObjectId, '.33049.1.1.1.')) {
|
if (starts_with($sysObjectId, '.1.3.6.1.4.1.33049.1.1.1.')) {
|
||||||
$os = 'mellanox';
|
$os = 'mellanox';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user