mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: MikroTik OS detection #3593
* MikroTik Updates To address, Mikrotik SwOS Issues (#3593) * Remove Default OS Setting
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (is_numeric(snmp_get($device, 'SNMPv2-SMI::enterprises.14988.2', '-Oqv', ''))) {
|
||||
$os = 'swos';
|
||||
if (strstr(snmp_get($device, 'SNMPv2-MIB::sysName.0', '-Oqv', ''), 'MikroTik')) {
|
||||
if (strstr(snmp_get($device, 'SNMPv2-MIB::sysDescr.0', '-Oqv', ''), 'RB260GS')) {
|
||||
$os = 'swos';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user