Edit Alert Actions

Home  Previous  Next

To modify the Alert Actions executed by Hardware Sentry upon a hardware failure, right-click on the main Hardware icon > KM Commands > KM Settings > Edit Alert Actions…

Select the Alert Actions to be executed

Check the boxes corresponding to the actions you would like executed upon a hardware failure.

By default, Hardware Sentry triggers a PATROL event and annotates the parameter that raises the alert, but there are all the actions that can be triggered:

KMCmd_Edit_Alert_Action_SelectParam

Editing Alert Actions — Selecting Parameters

Trigger a PATROL event
Annotate the parameter's graph
Execute an OS command
Execute a PSL command
Send a pop-up to the PATROL consoles
Write a line to a LOG file
Send a basic SNMP trap (using the PATROL MIB)
Send a custom SNMP trap
Send an Email

 

Trigger a PATROL event

If you select Trigger a PATROL Event, you need to enter the string that will be displayed with the event.

KMCmd_Edit_Alert_Action_TriggerAlert

A PATROL Event can be viewed from:

Standard PATROL Consoles (Classic Console, PATROL Central)
PATROL Enterprise Manager
BMC Impact Manager
Other third-party products that interface with PATROL.
NoteThe PATROL event that is triggered is the ‘41’ event from the standard PATROL catalog. You can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_.

Annotate the parameter’s graph

If you select the Annotate the parameter’s graph action, you need to enter the string that will be displayed within the annotation point.

KMCmd_Edit_Alert_Action_AnnotateParam

NoteYou can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_.

Execute an OS command

If you select the Execute an OS command action:

KMCmd_Edit_Alert_Action_ExecuteOSCmd

Enter a command line to be executed

Enter the username and password used to run the command.

The command can be a program utility or a script shell, and can have arguments.

ImportantThe command must be non-interactive (no window, no user input)
NoteYou can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_Alert_Actions_.

Execute a PSL command

If you select the Execute a PSL command action, you need to enter the PSL statement to be executed by the PATROL Agent. Although only a single line is permitted, it can have several PSL instructions.

KMCmd_Edit_Alert_Action_ExecutePSLCmd

ImportantThe PSL command is recommended for advanced user of PATROL.
NoteYou can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_.

Send a pop-up to the PATROL Consoles

If you select the Send a pop-up to the PATROL Consoles action, you need to enter the message that will be displayed in the pop-up as well as the in title of the pop-up window.

KMCmd_Edit_Alert_Action_SendPopUp

ImportantToo many pop-ups could annoy the operators.
NoteYou can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_.

Write a line to a LOG file

If you select the Write a line to a LOG file action:

KMCmd_Edit_Alert_Action_WriteLine

Enter the LOG file path and the content of the line.

NoteYou can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_.

Send a basic SNMP trap

If you select the Send a basic SNMP trap action:

KMCmd_Edit_Alert_Action_SendSNMPTrap

Enter the following:

IP address or hostname of the SNMP trap destination
SNMP port and community string
Text that will be sent in the SNMP trap
NoteUpon a hardware failure, Hardware Sentry will send the trap that is defined in the PATROL MIB (Trap number 11, Enterprise ID: 1.3.6.1.4.1.1031.1.1.2, the text is stored in the 1.3.6.1.4.1.1031.1.1.2.1 OID). You can use macros that will be replaced at runtime. The Alert Actions Macro Variables *Alert_Actions_Macro_Variabsection states the list of available macrosAlert_Actions_.

Send a custom SNMP trap (advanced)

If you select the Send a custom SNMP trap action, you need to enter the following:

KMCmd_Edit_Alert_Action_SendSNMPTrap_Adv

Enter the following:

IP address or hostname of the SNMP trap destination
SNMP port and community string
All the characteristics of the trap: Enterprise ID, trap number and up to 4 varbinds.

Send an E-mail

If you select the Send an E-mail action, you need to complete the following panel:

KM_Cmd_Alert_Actions_Email

Alert Actions: Send an E-mail

Enter the sender and the recipient email addresses in respectively the From and To fields, and type the SMTP server name. Finally, enter the email Subject and type the Body of the message you wish to send.

Changes Validation

After selecting and defining Alert Actions, you need to validate your changes by clicking the Finish button.

KMCmd_Edit_Alert_Action_Validation

NoteYou can use macros that will be replaced at runtime. The Alert Actions Macro Variables section states the list of available macrosAlert_Actions_.

See Also

Thresholds, Alerts and Notifications

Alert Actions

Alert Actions Macro Variables