mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: linux detect by oid too (#5439)
This commit is contained in:
committed by
Neil Lathwood
parent
4791328669
commit
5e1c7f4723
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
|
||||
if (starts_with($sysDescr, 'Linux')) {
|
||||
if (starts_with($sysDescr, 'Linux') || starts_with($sysObjectId, '.1.3.6.1.4.1.8072.3.2.10')) {
|
||||
$os = 'linux';
|
||||
|
||||
// Specific Linux-derivatives
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Linux
|
||||
1.3.6.1.2.1.1.1.0|4|Linux some.host.name 4.9.0 #1 SMP Mon Dec 12 14:44:53 CST 2016 x86_64
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Linux
|
||||
1.3.6.1.2.1.1.1.0|4|Something
|
||||
1.3.6.1.2.1.1.1.0|6|1.3.6.1.4.1.8072.3.2.10
|
||||
|
||||
Reference in New Issue
Block a user