Hello Dan,
From a SYSVIEW session, enter the command: VARS
The resulting display shows SYSVIEW's monitoring variables. If you do a Find on JOBCP, there is a variable called JOBCP%.
A MVS Threshold can be created based on this variable. If you enter the THRESH command, it will bring you to the MVS Threshold Definitions Display.
If you press the PF1 key, it will take you to the HELP for the THRESH display. Page down to the Data Fields. These descriptions will assist you in filling out many of the fields to create a new threshold
You can add an alert for JOBCP% with your variable length masking character as the Resource and RsceAttr. The remaining fields will take the default values unless you specify otherwise. Since you stated you would like this based on 20% of a CP in a 15 minute interval, I suggest setting the following values:
Limit of 20
Dur (Duration) of 15
TrigLvl of CHANGE
One of the options available is to run an Event Capture (provided you have the Capture feature of SYSVIEW) using the SYSVIEW command SENDMAIL.
The event capture library has members in it MVSMAIL and CICSMAIL which can be used as examples.
A couple of the actions which can be taken when a threshold hits are: messages to the SYSLOG, the SYSVIEW log, or send a message to the OPS/MVS product is you have it.
Provided you are doing WARM starts, the entry will be saved to the Persistent Data Store and will be regenerated when you stop/start SYSVIEW.
If you do not do WARM starts, you will need to add the definition to the SYSVIEW parmlib member MVSTHRSH.
If you require additional assistance, feel free to open a case and we will be happy to help!
Thanks,
Neil Kitzmiller, CA SYSVIEW Support