allow detecting OpenBSD's own snmpd by sysObjectId

This commit is contained in:
sthen 2015-04-23 22:35:23 +01:00
parent 96e71ca8a8
commit 12f421772a

View File

@ -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
}
?>