See an example job monitor that tracks the CPU utilization of a
specified job and alerts the job's owner if CPU utilization gets too high.
Situation
You
are currently running a new application on your iSeries™ server,
and you are concerned that some of the new interactive jobs are consuming
an unacceptable amount of resources. You would like the owners of the offending
jobs to be notified if their jobs ever consume too much of the CPU capacity.
You
can set up a job monitor to watch for the jobs from the new application and
send a message if a job consumes more than 30% of the CPU capacity.
Configuration
example
To set up a job monitor, you need to define which jobs to
watch for, what job attributes to watch for, and what the monitor should do
when the specified job attributes are detected. To set up a job monitor that
accomplishes this goal, complete the following steps:
- In iSeries Navigator, expand , right-click Job monitor, and select New
Monitor...
- On the General page, enter the following values:
- Specify a name and description for this monitor.
- On the Jobs to monitor tab, enter the following
values:
- For the Job name, specify the name of the job you
want to watch for (for example, MKWIDGET).
- Click Add.
- Click the Metrics tab, and enter the following
information:
- In the Available metrics list, expand Summary
Numeric Values, select CPU Percent Utilization,
and click Add.
- On the Threshold 1 tab for the metrics settings,
enter the following values:
- Select Enable trigger.
- For the threshold trigger value, specify >= 30 (greater
than or equal to 30 percent busy).
- For Duration, specify 1 interval.
- For the i5/OS™ trigger
command, specify the following:
SNDMSG MSG('Your job is exceeding 30% CPU capacity')
TOUSR(&OWNER)
- Click Enable reset.
- For the threshold reset value, specify < 20 (less
than 20 percent busy).
- Click the Collection Interval tab, and select 15
seconds. This will override the Collection Services setting.
- Click the Actions tab, and select Log
event in both the Trigger and Reset columns.
- Click the Servers and groups tab, and select the
servers and groups you want to monitor for this job.
- Click OK to save the new monitor.
- From the list of job monitors, right-click the new monitor and select Start.
Results
The new monitor checks the QINTER subsystem every
15 seconds, and if the job MKWIDGET is consuming more than 30 percent of the
CPU, the monitor sends a message to the job's owner. The monitor resets when
the job uses less than 20% CPU capacity.