An example of SNMP Trap in OpenNMS
Table of contents
Sending trap by the event from the door sensor
1. Rename the door sensor for convenience. To invert the state of the sensor use Reversed.
2. Create a notification element SNMP: Add ->Add Mailer SNMP Trap. Rename it in the Door Sensor Alarm trap.
3. Use «Send test message» to send a test notification. Finally, it should be something like this:
4. Create a logic element to link events to notification Preferences->Logic schemes->Add. Rename the logic as you want it.
5. When the Door sensor passes in Alarm status, the Door Sensor Alarm Trap will be sent.
Sending trap by the event from a temperature sensor
1. Rename Temperature Sensor. Use the slider to set the sensor thresholds.
2. Create a notification element SNMP: Add ->Add Mailer SNMP Trap. Rename it in Temperature Sensor Alarm Trap.
3. Use «Send test message» to send a test notification. Finally, it should be something like this:
4. Create a logic element to link events to notification Preferences->Logic schemes->Add. Rename the logic as you want it.
5. When the Temperature Sensor passes in Alarm status, the Temperature Sensor Alarm Trap will be sent.
Sending trap by the event from a humidity sensor
1. Rename Humidity Sensor. Use the slider to set the sensor thresholds.
2. Create a notification element SNMP: Add ->Add Mailer SNMP Trap. Rename it in Humidity Sensor Trap.
3. Use «Send test message» to send a test notification. Finally, it should be something like this:
4. Create a logic element to link events to notification Preferences->Logic schemes->Add. Rename the logic as you want it.
5. When the Humidity Sensor passes in Alarm status, Humidity Sensor Alarm Trap will be sent.