Using PSL Recovery Actions
If you use PSL recovery actions, you can use the PATROL KM for Event Management variables shown in the following table in your recovery action. Each variable contains a double underline (__) at the beginning and end of the variable name.
PATROL KM for Event Management Variables
Variable | Description |
|---|---|
_appl_class_ | application class name |
_param_ | parameter name |
_param_status_ | parameter status (ALARM, WARN, OK) |
_param_value_ | parameter value |
_instance_ | instance name |
_src_event_id_ | Source event id. This is the event ID of the event that began the notification process, typically a threshold exceeded event (Standard Event 9, 11 or 39). |
_nfile_ | A generated file that a PSL recovery action can write output to. The file name appears as the AS_NOTIFICATION_FILE environment variable in your notification script. You do not need to write to this file directly. You can also use the __output__ variable, described below. |
_output_ | When you assign a value to this variable, the data is automatically saved to the notification output file, __nfile__. This file name is accessible from the notification script as the environment variable AS_NOTIFICIATION_FILE. |
_udefvar_ | When you assign a value to this variable, the variable is automatically assigned to the message replacement token %USERDEFINED% and the environment variable AS_USERDEFINED, which is accessible to the notification script. For an example of how to use this variable, see Sending E-mail Notification for CPU Usage that Includes Parameter Annotations. |
Getting Host Information
To obtain other information, such as hostname or IP address, you need to use a get() command. For example, to get the hostname, use the following command:
For more information about using PSL, see the PATROL PSL documentation.