| United States-English |
|
|
|
![]() |
HP-UX Event ManagerAdministrator's Guide: HP-UX 11i v3 Edition 1 > Chapter 2 Using Event ManagerLogging and Forwarding Events |
|
The response to an event is any action determined by your site-specific needs and conditions. This response can range from activating alarms or paging responsible personnel, to making a log entry or ignoring an expected occurrence of a regular activity. You can configure the event processing sequence to perform a series of dependent tasks, by using an event output by one task as the trigger to activate the next process. Event Manager provides an interface to the response activity through the logging facility. The available options are event storage and event forwarding. The logger, evmlogger, started automatically by the Event Manager daemon, is responsible for the following:
By default, the logger handles events posted through its local daemon. For more information, see “Event Manager Command Line Utilities”. The logger is an ordinary client that is controlled through a configuration file. The default is the /etc/evmlogger.conf file, described in “Configuring Event Manager Logger”. For more information on this file and command, see evmlogger.conf(4) and evmlogger(1M) manpage. All events meeting the specifications of an eventlog group in the configuration file are written to the event log. For the default location of this file and the naming conventions, see “Event Manager System Files” . 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). 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” 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:
When configuring the logger to forward an event, consider the following points:
Use the logger's secondary configuration file facility for adding forwarders or other configuration items. For more information, see “Secondary Logger Configuration Files”. |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||