mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Reformat check a bit to make it easier for adding additional oids in the future
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (preg_match('/^Linux/', $sysDescr) && $sysObjectId != '.1.3.6.1.4.1.674.10892.2' && $sysObjectId != '.1.3.6.1.4.1.17163.1.1') {
|
||||
$skip_oids = array(
|
||||
'.1.3.6.1.4.1.674.10892.2',
|
||||
'.1.3.6.1.4.1.17163.1.1',
|
||||
);
|
||||
if (preg_match('/^Linux/', $sysDescr) && !in_array($sysObjectId, $skip_oids)) {
|
||||
$os = 'linux';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user