Content Generator

The Content Generator formats data into messages for Information actions.

The Event Log, SNMP Trap and File Watching monitors support regular expressions to capture variable data such as:

  • An event log description
  • Variable-binding data from an SNMP trap
  • A line from a log file

Captured data is passed to a Content Generator and parsed into a message. Additional information relating to the monitor (such as the event time stamp or the source IP address of a received SNMP trap) can be included in the message.

After the message is structured, it can be passed to any number of actions that are configured to act on the specific monitor that triggered the alert.

A Content Generator contains three elements: Name, Value, and Coalesce Separator.

The Name identifies the Content Generator. The Value defines the layout of the captured data. This will be the format of the alert message. The Coalesce Separator specifies the string used to terminate each capture data element. By default, this is \r\n (CRLF).

The default Content Generator in ipMonitor generates a message that contains the number of matches captured by the monitor in the data source.

Create a user-defined Content Generator to return an Information alert message in a customized format. Customized messages can be structured for different purposes—for example, email actions, text logs or SNMP traps.