Desktop tools
The probe is supplied with the following desktop tools that allow you to display a menu from the desktop to acknowledge or unacknowledge an alert: UnixHpomTool.sql, NHttpHpomProbe.pl, and hpom.rules.
UnixHpomTool.sql
This SQL file creates a UI menu from the desktop that allows you to Acknowledge and Unacknowledge alerts.
Both menu items call NHttpHpomProbe.pl and pass it the following arguments:
- The command to acknowledge or unacknowledge.
- The
@EventId
from the event. - The URL to the HTTP command listener of the probe (from the
@URL
field).
For platforms other than linux, the <arch>
in
the Netcool/OMNIbus directories must be updated accordingly.
NHttpHpomProbe.pl
This script is called by the Acknowledge Alert and Unacknowledge Alert menu items. It sends the command to event factory using the probe’s URL.
The command will reach the hpom.bidir.rules file to perform an acknowledge or an unacknowledge command accordingly, respectively.
The Acknowledge Alert tool
sets the event status to Acknowledged
(1) in the
ObjectServer’s alert.status table.
The Unacknowledge
Alert tool sets the event status to Acknowledged
(0)
in the ObjectServer’s alert.status table.
hpom.bidir.rules
This is called in the hpom.rules file.
To enable Acknowledge and Unacknowledge alert operations, uncomment the following line in the hpom.rules file:
#include “hpom.bidir.rules”
Enabling the desktop tools
To enable the desktop tools, using the following steps:
- For platforms other than Linux, in UnixHpomTool.sql replace linux2x86 with the arch of the platform.
- Run the following command to create HP Operations Manager menu
in Event List:
cat $OMNIHOME/probes/<arch>/ UnixHpomTool.sql | $OMNIHOME/bin/nco_sql -server <server> -user <user> -password <password>
- Uncomment the line
#include “hpom.bidir.rules”
in hpom.rules. - Run the following command:
‘chmod +x $OMNIHOME/probes/<arch>/ NHttpHpomProbe.pl’
Using the desktop tools
The Acknowledge Alert and Unacknowledge Alert tools issue commands to the event factory through the HTTP port of the probe.
- In the ObjectServer, the
Acknowledged
field of the selected event will be set to1
or0
for Acknowledge Alert and Unacknowledge Alert, respectively. - In the HP Operations Manager system, the corresponding message will be updated to acknowledged or unacknowledged state accordingly.
- The update in HP Operations Manager results in sending an
OPC_MSG_EVENT_ACK
orOPC_MSG_EVENT_UNACK
event to probe.