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.
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.
@EventIdfrom the event.
- The URL to the HTTP command listener of the probe (from the
For platforms other than linux, the
the Netcool/OMNIbus directories must be updated accordingly.
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.
Alert tool sets the event status to
in the ObjectServer’s alert.status table.
This is called in the hpom.rules file.
To enable Acknowledge and Unacknowledge alert operations, uncomment the following line in the hpom.rules file:
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
Acknowledgedfield of the selected event will be set to
0for 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_UNACKevent to probe.