mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Merge pull request #4499 from murrant/fix-swos
fix: swos os discovery fixes #3593
This commit is contained in:
		@@ -1,9 +1,7 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
if (!$os) {
 | 
			
		||||
    if (strstr(snmp_get($device, 'SNMPv2-MIB::sysName.0', '-Oqv', ''), 'MikroTik')) {
 | 
			
		||||
        if (strstr(snmp_get($device, 'SNMPv2-MIB::sysDescr.0', '-Oqv', ''), 'RB260GS')) {
 | 
			
		||||
            $os = 'swos';
 | 
			
		||||
        }
 | 
			
		||||
if (str_contains($sysDescr, array('RB260GS', 'RB250GS', 'RB260GSP'))) {
 | 
			
		||||
    if (str_contains(snmp_get($device, 'SNMPv2-MIB::sysName.0', '-Oqv', ''), 'MicroTik')) {
 | 
			
		||||
        $os = 'swos';
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user