3.4.0 Matrix Server Administration Guide
Chapter 14: Configure Notifiers 173
Copyright © 1999-2006 PolyServe, Inc. All rights reserved.
The Test Notifier option causes a test event to be generated for each of the
event/entity combinations that you configure for the notifier. Following is
an example:
10.10.1.1 Error SERVICEMONITORS 0 Oct 31 2000 13:31:31
TEST Notifier message for <notifier name>
A Sample Notifier Script
The following batch file can be used in conjunction with a command-line
tool to send e-mail when notifier events are generated.
SET/P INPUT=
SET LOG=C:\BATCH.LOG
IF EXIST %LOG% DEL %LOG%
REM Parse the input, break into fields and dump into the log file
FOR /F "tokens=1-9,* delims= " %%A IN ('ECHO %INPUT%') DO @(
ECHO source=%%A
ECHO event=%%B
ECHO entity=%%C
ECHO evtcode=%%D
ECHO datetime=%%E %%F %%G %%H %%I
ECHO text=%%J
) >>%LOG%