HP (Hewlett-Packard) HP OpenView Vantagepoint – Operation Manual for UNIX Printer User Manual


 
Using the Integration Capabilities of the VPO Motif-based GUI
Event Integration Through Messages
Chapter 398
Defining Templates for Messages Sent to the VPO
Message Interface opcmsg(1|3)
This section describes how to create or modify a template that intercepts
messages sent to the VPO message interface - the function opcmsg(1|3)
of the Agent Message API.
The partner solution can use the VPO message C library routine
opcmsg(3) or command opcmsg(1) to route messages in the standard
VPO format to any VPO agent. Messages sent through the API or
command are intercepted by VPO at the managed node on which the
command or API are invoked. This allows a distributed handling of
messages across the network.
The following example shows how to create a VPO message with the
opcmsg(1) command:
This example submits a critical message issued by the script
diskwatcher.sh with the related object /usr/lib which belongs to
the message group DB:
opcmsg sev=critical msg_grp=DB appl=diskwatcher.sh \
node=laurax.bbn.hp.com \
msg_text=”DSET vouchers FULL: No further processing \
on vouchers possible!” \
object=”/usr/lib”
For all messages created by the VPO Agent Message API, the same
processing is done as for other message sources. You can filter messages,
classify them, set attributes, and define actions or other options. The
description of the message handling is almost the same as for the other
message sources, with only the specification of the message source being
different.