Previous Topic: Generic Processes Using Resource Variables

Next Topic: How You Test a Process


Processes to Generate Alerts

You can use a process in a ResourceView resource definition or an EventView message rule to generate alerts in response to problems occurring in a resource.

The GENALERT macro enables you to generate an alert from a process.

Example: Generate Alert on Security Violation

The DFHAC2003 message indicates that a CICS security violation has occurred. You may want to be warned of these violations. The following panels show the message rule definition that generates an alert under this condition by using the SECALERT process definition:

 SOLVPROD--------------- EventView : Message Filter -------------------CICSSEC--  Command ===> Function=BROWSE  Ruleset Name ........ CICSSEC Rule Status .... ACTIVE  Short Description ... CICS security alerts  . Expected Message -----------------------------------------------------------.  | S=ListPanels E=ExtFilter T=TestVars |  | Message Text ( WildChar = * ) ExtFlt |  | ___ DHFAC2003 NO |

 SOLVPROD---------- EventView : DHFAC2003 Message Actions -------------CICSSEC--  Command ===> Function=BROWSE  Reply Text .......  System Command ...  MS Command .......  . Automation Actions ---------------------------------------------------------.  | S/B=Browse U=Update L=List |  | Process Parameters |  | ___ SECALERT |

The following panels show the SECALERT process definition and the parameters used by the GENALERT macro:

 SOLVPROD------- Automation Services : Process Definition -------Function=Browse  Command ===> Scroll ===> CSR  . Process Definition ---------------------------------------------------------.  | System Name .. $PROCESS Version .. 0001 Last Updated By USER01 |  | Name ......... SECALERT At 16.21.13 On WED 24-JUL-1996 |  | Description .. CICS security violation alert generator |  ’-----------------------------------------------------------------------------’  . Process Steps --------------------------------------------------------------.  | |  | P=Parms |  | Condition |  | StepName Step/RC Opr RC Macro Description |  | P A GENALERT GENERATE AN EVENTVIEW ALERT |  | **END** |

 SOLVPROD-------------- EventView : Alert Attributes ---------------------------  Command ===> Function=BROWSE  . Alert Reference Key --------------------------------------------------------.  | |  | Reference ... CICS_SECURITY_ALERT_&ZMSGWORD20 |  | |  ’-----------------------------------------------------------------------------’  . Alert Attributes -----------------------------------------------------------.  | |  | Severity .... 2 |  | Type ........ DEFAULT |  | Origin ...... ALERTMACRO |

 SOLVPROD-------------- EventView : Alert Definition ---------------------------  Command ===> Function=BROWSE  . Alert Description ----------------------------------------------------------.  | |  | SECURITY VIOLATION HAS OCCURRED. |  ’-----------------------------------------------------------------------------’  . Alert Text -----------------------------------------------------------------.  | |  | ALERT IS TRIGGERED BY THE FOLLOWING MESSAGE: |  | &ZMSGTEXT |  | |  | |  | |  ’-----------------------------------------------------------------------------’  . Alert Recommended Action ---------------------------------------------------.  | SEE THE PRECEDING DFHXS1111 MESSAGE IN THE CSCS LOG FOR FURTHER INFORMATION.|  | |  | |  | |  | |  ’-----------------------------------------------------------------------------’  F1=Help F2=Split F3=Exit  F7=Backward F9=Swap F11=Panels