From dcc6b9ac0bb0bfde90c8be6eed3768e089cbbab5 Mon Sep 17 00:00:00 2001 From: FingerlessGlov3s <3495647+FingerlessGlov3s@users.noreply.github.com> Date: Mon, 9 Mar 2020 19:45:47 +0000 Subject: [PATCH] Update OPNsense definition due to incorrect OID on second detection method (#11265) * Update OPNsense snmprec, with real data Update OPNsense snmprec, with real data. Data from OPNsense 20.1.2 (Latest release at time of commit) * Update OPNsense definition due to incorrect OID sysObjectID is incorrect for OPNsense should be .1.3.6.1.4.1.8072.3.2.8. for this snmpget detection to work. This has been tested in my environment with 2 OPNsense Firewalls. --- includes/definitions/opnsense.yaml | 2 +- tests/snmpsim/opnsense_1.snmprec | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/definitions/opnsense.yaml b/includes/definitions/opnsense.yaml index d4e14ed7303d..d0af81eeb67f 100644 --- a/includes/definitions/opnsense.yaml +++ b/includes/definitions/opnsense.yaml @@ -10,7 +10,7 @@ discovery: - sysDescr: - OPNsense - - sysObjectID: .1.3.6.1.4.1.12325.1.1.2.1.1 + sysObjectID: .1.3.6.1.4.1.8072.3.2.8 snmpget: oid: .1.3.6.1.4.1.8072.1.3.2.3.1.2.7.118.101.114.115.105.111.110 op: contains diff --git a/tests/snmpsim/opnsense_1.snmprec b/tests/snmpsim/opnsense_1.snmprec index 6fda1a5a930e..c87a97b1b7f5 100644 --- a/tests/snmpsim/opnsense_1.snmprec +++ b/tests/snmpsim/opnsense_1.snmprec @@ -1,3 +1,3 @@ -1.3.6.1.2.1.1.1.0|4|Other.7p.lan 18.1.1-a5575d7bd Other FreeBSD 11.1-RELEASE-p6 amd64 -1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.12325.1.1.2.1.1 -1.3.6.1.4.1.8072.1.3.2.3.1.2.7.118.101.114.115.105.111.110|4|Blah OPNsense Blah +1.3.6.1.2.1.1.1.0|4|FreeBSD fw1-eri1.OPN 11.2-RELEASE-p16-HBSD FreeBSD 11.2-RELEASE-p16-HBSD fc65add89c3(stable/20.1) amd64 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.8 +1.3.6.1.4.1.8072.1.3.2.3.1.2.7.118.101.114.115.105.111.110|4|OPNsense 20.1.2 (amd64/OpenSSL)