Commit version 24.12.13800
This commit is contained in:
@ -4,21 +4,23 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
// Keep this os detect here!
|
||||
// for detect as last turn (when other definitions not detected)
|
||||
|
||||
if ($os) { return; }
|
||||
if ($os) {
|
||||
return;
|
||||
}
|
||||
|
||||
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';
|
||||
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';
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user