Welcome to docs.opsview.com
SNMP Communication
Because of some poor decisions made much earlier, Opsview 2.14.2 and below only gave the option of SNMP V1/V2c or SNMP V3. This is now split out to SNMP V1, V2c and V3.
When writing anything that tries to communicate to a device, if you are passed 1 or 3, use that version only. If you are passed 2c, do a fallback to V1. This means that if someone sets the correct version initially, then scripts will run as fast as possible without timing out on the wrong version first.
These work with fallback mechanisms:
- query_host
- snmpwalk through web interface
- check_snmp_linkstatus
- MRTG
- NMIS
These are some of the plugins that do not handle fallback:
- check_snmp - only checks the specified version
There are also a list of other check_snmp_* plugins created by Opsera which either do not handle V3 or do not do fallback.
SNMP Traps
If debug is switched on, every trap for the requested host is stored in /usr/local/nagios/var/traps.db.
If you select “Collect” in the trap debug page, it will go off and pull all those traps from that file and re-process them with the current rules and display a debug link to investigate further.
This traps.db file is a sqlite db (required because on slaves too). It will be housekept by the opsview_cronjobs script, so will only have the last 7 days worth of data in there.
Use dbish to read the file.
Trace: » opsviewplugins » internationalisation » configuration_generation » access » snmp