mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add OS tests and use sysObjectId for device recognition
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
$genEquipInventoryCardName = snmp_get($device, 'MWRM-UNIT-MIB::genEquipInventoryCardName.127', '-Osqnv');
|
||||
|
||||
if (preg_match('/IP-[1,2]0/', $genEquipInventoryCardName)) {
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.2281')) {
|
||||
$os = 'ceraos';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user