HP-UX Event ManagerAdministrator's Guide
Using Event Manager
Logging and Forwarding Events
Chapter 252
You can include a suppress group specification in an eventlog
statement in the configuration file. When you include such a statement,
events meeting the suppression criteria are not entered in the log. One
instance of the event is stored, with additional data indicating the
number of events and the time of the first and last occurrence of the
event. For the explanation of this criterion, see evmlogger.conf (4).
Using Forwarding to Handle Events Automatically
If you want to automate the handling of selected events, you can
configure the Event Manager logger to forward the event by executing a
command. For example, you can mail the event information to a paging
service, or invoke an event-handling application program.
By default, the logger is configured to mail high priority events to the
superuser. You can use the default forwarding command as an example
for developing your own actions. For more information, see “Configuring
Event Manager Logger” on page 67 and the evmlogger.conf (4) manpage.
All events meeting the filter specifications of a forward statement in the
configuration file are written to the standard input (stdin) of the
command specified in the statement. The command is the name of a shell
script, a single UNIX command, a series of UNIX commands (pipeline),
or any other executable statement. The following operations are typically
specified as a forwarding action:
• Specifying the mail command or mailx command, or another
command-line mail processor, to send an e-mail to a responsible
person or paging service.
• Invoking additional software that causes emergency shutdown
procedures to commence.
• Invoking a dependent process that is waiting for the event to occur
When configuring the logger to forward an event, consider the following
points:
• The event selected for forwarding is piped in to the forwarding
command. If your commands need to deal with text information, the
evmshow command must be the first command in the pipeline so that
the event is converted to text form.