mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 19:08:15 +00:00
allow detecting OpenBSD's own snmpd by sysObjectId
This commit is contained in:
parent
96e71ca8a8
commit
12f421772a
@ -2,7 +2,8 @@
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/OpenBSD/", $sysDescr)) { $os = "openbsd"; }
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.30155.23.1")) { $os = "openbsd"; } # snmpd
|
||||
if (preg_match("/OpenBSD/", $sysDescr)) { $os = "openbsd"; } # Net-SNMP
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user