Send Alert to Windows Event Log

From WebWatchBotWiki
Jump to: navigation, search
 Share 

Alerts can be from WebWatchBot to the Windows Event Log, using a freeware command line tool named "logevent.exe", published by Microsoft, which was originally distributed in the Windows Resource Toolkit.

WebWatchBot does not natively support the logging of alerts to the Windows event log; however, it can be configured to execute an external command, such as logevent.exe (the name of the executable program for logging events to the Windows event log).

Follow these instructions to log an alert from WebWatchBot into the Windows Event Log:

  1. Download and install Windows NT4 Resource kit from Microsoft's website: http://download.microsoft.com/download/winntsrv40/rktools/1.0/NT4/EN-US/sp4rk_i386.Exe. More information on the resource kit's logevent utility: http://support.microsoft.com/kb/315410
  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 logevent.exe and the parameters. For example:


c:\program files\rksupport\logevent.exe -r "WebWatchBot" "<%MachineName%> <%WatchItemName%> <%AlarmCondition%>"
Check the "Active" checkbox.
Note: It may be necessary to copy the logevent.exe program to a different directory to ensure that the Windows user account for the WebWatchBot service (wwbserver) has permission to exectue.
set-alarm-actions-eventlog-command.gif

  1. Click OK until all of the windows have closed.