Configuring Notification-1


The following section describes how to configure the notification server to issue notifications that are sent through the AlarmPoint server.

Using the Custom Notification Type

To use AlarmPoint, you must use the custom notification event type when configuring the PATROL KM for Event Management rules.

 Using AlarmPoint Notification Scripts

To integrate with AlarmPoint, use the following AlarmPoint notification scripts that are provided with PATROL KM for Event Management:

  • AS_EVSLocalAlertNotifyAP.bat -- PATROL KM for Event Management notification script for Windows
  • AS_EVSLocalAlertNotifyAP.sh --PATROL KM for Event Management notification script for Unix
Warning

Note

You must backup and rename these scripts prior to configuring the notification server to use them. For more information about managing notification scripts, see Using Notification Scripts.

Using PATROL KM for Event Management Notification Rules

The next step is to create PATROL KM for Event Management rules so that when a PATROL object enters an alarm state, the notification server calls the AlarmPoint notification script and passes a notification target that matches an AlarmPoint user ID. The rules you need are shown below:

  • /AS/EVENTSPRING/ object / arsAction -- use this rule to specify that notification is enabled for the PATROL object.
  • /AS/EVENTSPRING/ALERT/ object / alertLocalCommand -- use this rule to specify the path to the notification script on the notification server.
  • /AS/EVENTSPRING/ALERT/CUSTOM/ object / customTargetsLocalALARM -- use this rule to specify the ID of the AlarmPoint user or user group. This rule is a local target rule, rather than a remote target rule, because the rule is located on the notification server and the notification server is performing the notification. Thus, notification is performed locally.

In these rules, objectrefers to a PATROL object, which can be an application class, an application instance, or a parameter. For example, a PATROL object could be the NT_CPU\CPU_0\CPUprcrProcessorTimePercent parameter. 

esg_u27-48.gif

You can set these rules using the PATROL KM for Event Management or the PATROL Configuration Manager. The following topics describe how to set the rules using the PATROL KM for Event Management. For more information about using the PATROL Configuration Manager, see the PATROL Configuration Manager User Guide

Before You Begin

Before you set the notification rules, you must define notification servers and assign notification servers to the remote agents. For more information, see Configuring Notification Servers and Configuring Remote Agents.

To Set the arsAction Notification Rule

  1. From the PATROL console, access the managed system you are using as the notification server and display the KM menu commands as described in Accessing KM Commands and InfoBoxes.
  2. Choose the KM menu command Event Management > Alert Settings > Alert Actions > Set For Parameters.
  3. From the next series of dialog boxes, choose the application class, instance, and parameter. For example, NT_CPU\CPU_0\CPUprcrProcessorTimePercent. After you choose the desired parameter, the dialog box shown in the following figure is displayed.

    SET EVENT MANAGEMENT VARIABLE:arsAction Dialog Box
    esg_u27-49.gif
  4. From the SET EVENT MANAGEMENT VARIABLE: arsAction dialog box, verify that the following options are selected:
    • Trigger NOTIFY_EVENT (Perform Notification) - this option enables notification for the selected parameter.
    • Make persistent (update config db) - this option ensures that any changes you make on this dialog box persist after an agent restart.
  5. To save your changes, click Accept.

The following configuration variable value is set to 4, which enables notification:

/AS/EVENTSPRING/NT_CPU/CPU_0/CPUprcrProcessorTimePercent/ [arsAction|arsAction#31122]


To Set the alertLocalCommand Notification Rule

  1. From the PATROL console, access the managed system you are using as the notification server and display the KM menu commands as described in Accessing KM Commands and InfoBoxes.
  2. Choose the KM menu command Event Management => Alert Settings => Local Alert Actions => Notification Command => Set For Parameters.
  3. From the next series of dialog boxes, choose the same parameter selected in the previous task: NT_CPU\CPU_0\CPUprcrProcessorTimePercent.
  4. From the SET EVENT MANAGMENT ALERT VARIABLE: alertLocalCommand dialog box, enter the full path name of the AlarmPoint notification script on the notification server computer. For example, /us/p/AS_EVSLocalAlertNotifyAP.sh.
  5. To save your changes, click Accept.

The following configuration variable is set as /us/p/AS_EVSLocalAlertNotifyAP.sh:

/AS/EVENTSPRING/ALERT/NT_CPU/CPU_0/CPUprcrProcessorTimePercent/ [alertLocalCommand|alertLocalCommand#33384]

To Set the customTargetsLocalALARM Notification Rule

  1. From the PATROL console, access the managed system you are using as the notification server and display the KM menu commands as described in Accessing KM Commands and InfoBoxes.
  2. Choose the KM menu command Event Management > Alert Settings > Notification Targets > Custom > Local TargetsALARM > Set For Parameters.
  3. From the next series of dialog boxes, choose the same parameter selected in the previous task: NT_CPU\CPU_0\CPUprcrProcessorTimePercent.
  4. From the SET EVENT MANAGMENT ALERT VARIABLE: customTargetsLocalALARM dialog box, enter the ID of the AlarmPoint target, as shown in the following figure.

    SET EVENT MANAGEMENT ALERT VARIABLES/RULES Dialog Box
    esg_u27-50.gif
  5. To save your changes, click Accept.

The following configuration variable is set as administrator:

/AS/EVENTSPRING/ALERT/NT_CPU/CPU_0/CPUprcrProcessorTimePercent/ [customTargets|customTargets#30216]LocalALARM

When the NT_CPU\CPU_0\CPUprcrProcessorTimePercent parameter enters an alarm state on the notification server or on any remote agent configured to send events to the notification server, the notification server calls the AlarmPoint notification script and passes the AlarmPoint ID (administrator). The AlarmPoint script calls the AlarmPoint server, which notifies administrator according to his or her AlarmPoint user settings. For example, an e-mail message may be issued during the day and a page at night.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL for Event Management 2.9.00