How to test a notification

Ops Center Protector User Guide

Version
7.7.x
Audience
anonymous
Part Number
MK-99PRT002-08
ft:lastEdition
2023-10-26

Create one or more notifications (see How to create a notification).

Use the sendlog command (see Generating log messages with sendlog) to create logs to test that a notification event handler (NEH) functions properly.

When a notification event is triggered, a log message file is created that exists for the duration of the handler execution, after which it is deleted. To view the contents of a log message file, an event handler can be created that dumps the file to standard output. In Windows the following command could be placed in a batch file that acts as the NEH:

more < %1

A log message entry will appear on the Logs Inventory with an attachment containing the above batch command, followed by the XML formatted log message that triggered it.