mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-19 00:12:03 +02:00
Merge pull request #860 from sthen/openbsd_osdetect
allow detecting OpenBSD's own snmpd by sysObjectId
This commit is contained in:
@@ -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,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
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user