Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Event ManagerAdministrator's Guide: HP-UX 11i v3 Edition 1 > Chapter 3 Configuring Event Manager

Configuring Event Manager Channel

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

An event channel is a source of event information. The channel configuration file, /etc/evmchannel.conf, defines a set of event channels and the functions that operate on the channels, for use by the channel manager, the evmshow command, and the event retrieval process. For more information about configuration file, see evmchannel.conf(4). Example 3-2 “Sample Event Manager Channel Configuration File” shows sample channel configuration file entries.

Example 3-2 Sample Event Manager Channel Configuration File

	 # Global path for channel functions
	 	 /* 	This line declares the /usr/share/evm/channels directory as 	 	 	 	 	the default path for all channel functions. This path is 	 	 	 	 	 	 	 prefixed to the names of any channel functions defined in 	 	 	 	 	 		 this file that do not begin with a slash (/) character, 	 	 	 	 	 	 	 	 unless the channel group supplies its own path value. */
path /usr/share/evm/channels /* This line defines a daily 2:00 am cleanup for all channels. */
	 # Time-of-day at which daily cleanup function will run
cleanup_time 02:00:00 # ==================================
# Event channel: EVM log
# ==================================
/* This line specifies a configuration group that defines an event channel. */
	 channel
{
	 	 	 	/* This line specifies that the name of the channel is evmlog. */
	 	 	 		 	name evmlog	 	 /* This line overrides the default path /usr/share/evm/channels 	 	 	 	defined at the global level. */
path /usr/share/evm/channels/evmlog /* In this line, the asterisk (*) indicates that the channel provides default event handling, meaning that its functions are invoked to provide details and explanations for any events whose names do not match the events value of any other channel. */
events * /* Any line beginning with fn_ defines a script that runs for each function. */
fn_get "evmlog_get"
		 	fn_details  "evmlog_details"
fn_explain "evmlog_explain"
fn_monitor "evmlog_mon"
/* The argument values on this line are passed to the cleanup program to control its operation. In this example, log files older than 7 days are compressed and those older than 31 days are deleted. The meanings of the arguments are specific to individual channel functions, and may not be the same in all cases. */
	 fn_cleanup  "evmlog_cleanup 7 31" 	 	 /* This line sets the monitoring period, which causes the 	 	 	 	 	 	 	 	 		 /usr/share/evm/channels/evmlog/evmlog_mon function to be 	 	 	 	 	 	 	 invoked every 15 minutes. */	
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 mon_period  15:00  # Monitor every 15 minutes 	 }
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.