Merge pull request #860 from sthen/openbsd_osdetect

allow detecting OpenBSD's own snmpd by sysObjectId
This commit is contained in:
Paul Gear
2015-04-24 08:21:07 +10:00
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ Contributors to LibreNMS:
- Joubert RedRat <me+github@redrat.com.br> (joubertredrat)
- Len Lin <Ultra2D@users.noreply.github.com> (Ultra2D)
- Christopher Freas <code@packetbusters.net> (nwautomator)
- Stuart Henderson <stu@spacehopper.org> (sthen)
[1]: http://observium.org/ "Observium web site"
+2 -1
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
}
?>