SNMP Traps

SNMP Traps are messages sent in a particular case, for example if there is a fault. These "trap" messages need to be sent to a destination. It is possible to configure SNMP traps using the Event Rules and a notifier, use protocol T or protocol X.

Use the Notification screen in Waveview to configure a Notifier which uses SNMP trap protocol. 

  • SNMP v1 trap format - (Wavestore Notifier type T)
  • SNMP v2c trap format - (Wavestore Notifier type X)

SNMP works with "OID" codes which are strings of numbers like 1.3.6.1.4.1.39487.3.12.9.

The OID should normally start 1.3.6.1.4.1.39487.3. which is the standard OID "wavestore" prefix assigned by IANA followed by .3 to indicate it's a trap; you can place anything after this, for example, an identification number for the server.

  • If the OID ends ".%d.%d" these fields will become .EventCause.Camera

Examples:

 OID=1.3.6.1.4.1.39487.3.12.9
 OID=1.3.6.1.4.1.39487.3.1.%d.%d

Then use the Event Setup Screen to add events to trigger this notifier.  The Event setup screen allows  any event to have an Action of Notify, and you can specify which notifier is to be used if there is more than one configured.

Normally, the ServerID/Channel/Priority should all be set to 0 for SNMP traps, which will ensure the source event details are sent out in the SNMP Trap. Setting these to some other value will overwrite the destination fields such as the camera number which is probably not what you intend.

The following event cause type names have well defined numbers which will appear in the OID:

Event name Numeric code
Motion 1
Darkening 2
Input 3
NetworkSlow 4
ManualTrigger 5
Fault 6
CameraMovement 11
Recording 12
VideoLoss 14

 

Some examples of SNMP Traps received for different events from a server configured with OID: 1.3.6.1.4.1.39487.3.4693.%d.%d:

Motion on Camera 18: 1.3.6.1.4.1.39487.3.4693.1.18.0.0

Fault on PSU module: 1.3.6.1.4.1.39487.3.4693.6.24.0.0

If you want to send different codes on trap ON and event OFF, note you can set two SNMP traps, one for ON and one for OFF, with different OIDs.  For example:

Configure Notifier for ON:

  Type=ON
  OID=1.3.6.1.4.1.39487.3.1.%d.%d

then configure notifier for OFF:
  Type=OFF
  OID=1.3.6.1.4.1.39487.3.0.%d.%d

This information is correct from Wavestore V6.32.