commit version 22.12.12447
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,7 +6,7 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
@ -16,10 +15,9 @@
|
||||
|
||||
if ($os) { return; }
|
||||
|
||||
if (str_contains_array($sysDescr, 'FreeBSD') ||
|
||||
str_starts($sysObjectID, array('.1.3.6.1.4.1.8072.3.2.8', // NET-SNMP
|
||||
'.1.3.6.1.4.1.12325.1.1.2.1'))) // BSNMP daemon
|
||||
{
|
||||
if (str_contains($sysDescr, 'FreeBSD') ||
|
||||
str_starts($sysObjectID, [ '.1.3.6.1.4.1.8072.3.2.8', // NET-SNMP
|
||||
'.1.3.6.1.4.1.12325.1.1.2.1' ])) { // BSNMP daemon
|
||||
$os = 'freebsd';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user