HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

e
evmchannel.conf(4) evmchannel.conf(4)
Keyword Minimum
channel 4
cleanup_time 0
events 5
fn_cleanup 8
fn_details 0
fn_explain 6
fn_get 0
fn_monitor 6
mon_period 0
name 0
path 0
Notes
If you are concerned with allowing your file to be used on other systems that support EVM in the future,
you should use the built-in macro @SYS_VP@
in place of the first two components (sys.unix) of the
name of any system event. This will make it unnecessary to change the file if the other system uses a
different event name prefix.
EXAMPLES
The following is an example of a channel configuration file:
cleanup_time 03:00:00
channel {
name my_events
path /var/evm/adm/channels/my_events
events myco.myapp.my_events
fn_get "my_events_get -r 8"
fn_details my_events_details
fn_explain my_events_explain
fn_monitor my_events_monitor
fn_cleanup "my_events_cleanup 7 31"
mon_period 15:0
}
The channel configuration file does the following:
1. The cleanup program for this and all other defined channels will be run at 3:00 a.m. each day.
2. The event channel has the name my_events.
3. All channel functions are found in a directory named /var/evm/adm/channels/my_events
.
4. This channel applies to events having
myco.myapp.my_events
as the first three components of
their names.
5. Whenever
evmget is run, the program
/var/evm/adm/channels/my_events/my_events_get
is invoked to retrieve events of this
class. The arguments
-r 8 are passed to the program each time it is executed -- these arguments may
be followed by -f and a filter string.
6. Whenever the evmshow -d command encounters an event in this class, the program
/var/evm/adm/channels/my_events/my_events_details
is invoked to provide the
detailed description.
7. Whenever the
evmshow -x command encounters an explanation for an event in this class, the pro-
gram /var/evm/adm/channels/my_events/my_events_explain
is invoked to provide the
explanation.
8. The program
/var/evm/adm/channels/my_events/my_events_cleanup
is run daily at
3:00 a.m. The arguments
7 and 31 are passed to the program each time it is executed.
9. The channel manager invokes the function
/var/evm/adm/channels/my_events/my_events_monitor on startup (with the -init
parameter) and every 15 minutes thereafter.
86 Hewlett-Packard Company 4 HP-UX 11i Version 3: February 2007