Additional Open Sense detection (#11196)

* Update opnsense.yaml - too add discovery method

Update opnsense.yaml for new OPNsense OID called version.
This will help with detection after the user turns on "Display Verion in OID" within OPNsense

* Re-order to reduce snmp-scan.py time

First, check sysDescr for OPNsense.  Then if sysObjectID is 1.3.6.1.4.1.12325.1.1.2.1.1, run an snmpget

* Create opnsense_1.snmprec

Make up test file since data was not supplied

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
FingerlessGlov3s
2020-02-26 02:28:22 +00:00
committed by GitHub
parent 2d14a57986
commit fe9deb9b9c
2 changed files with 9 additions and 0 deletions

View File

@@ -9,3 +9,9 @@ over:
discovery:
- sysDescr:
- OPNsense
-
sysObjectID: .1.3.6.1.4.1.12325.1.1.2.1.1
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
value: 'OPNsense'

View File

@@ -0,0 +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