Send SNMP Traps from WebWatchBot

From WebWatchBotWiki
Jump to: navigation, search
 Share 

SNMP traps can be sent from WebWatchBot, using a freeware command line tool named "Trap Generator" by "Network Computing Technologies".

WebWatchBot does not natively support the sending of SNMP traps; however, it can be configured to execute an external command, such as trapgen.exe (the name of the executable program for Trap Generator).

Follow these instructions to send and SNMP trap from WebWatchBot:

  1. Download and install "Trap Generator" from the "Network Computing Technologies" website: http://www.ncomtech.com/trapgen.html
  2. In WebWatchBot Manager, open the properties of an existing Watch Item or create a new Watch Item.
  3. Select the "Alarm" tab.
    watch-item-properties.gif
  4. Click on the "Actions" button.
    watch-item-properties2.gif
  5. Select the "Commands" tab.
    set-alarm-actions.gif
  6. Enter the fully qualified pathname to trapgen.exe and the parameters. For example:
    -d 192.168.0.1 -v 1.3.6.1.4.1.1824.1.0.0.1 STRING "<%WatchItemName%> <%AlarmCondition%> "
    Replace the IP Address 192.168.0.1 with the ip address of the machine where you want the SNMP trap to be sent to.
    Note the use of replacement tokens, e.g. <%WatchItemName%> <%AlarmCondition%>, which are provided for program execution customization. WebWatchBot will automatically replace the tokens with the appropriate value when the program is executed. Tokens include:
    1. <%DateTime%>
    2. <%Date%>
    3. <%Time%>
    4. <%DateTime24h%> - 24 hour time, e.g. 13:00 instead of 1 PM
    5. <%Time24h%> - 24 hour time, e.g. 13:00 instead of 1 PM
    6. <%MachineName%>
    7. <%WatchItemName%>
    8. <%AlarmCondition%> - one of two values: "UP" or "DOWN"
  7. Check the "Active" checkbox.
    set-alarm-actions-command.gif
  8. Click OK until all of the windows have closed.