Previous Topic: Defining IP Monitoring JobsNext Topic: Defining Text File Reading and Monitoring Jobs


Defining Process Monitoring Jobs

You can define a Process Monitoring (PROCESS_MON) job to monitor the status of a process on the computer where the agent is installed.

Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, Windows, or i5/OS.

Required Statements

To define a Process Monitoring job, you must specify the following statements:

Optional Statements

You can specify the following optional statements for a Process Monitoring job:

Example: Monitor the Agent Process on Windows Using a Full Path

Suppose that the WINAGENT computer runs multiple agents. To monitor the cybAgent.exe process, the full path to that process is specified. The job checks the process status immediately and completes successfully if the process is running. If the process is not running, the job fails. The process name is enclosed in single quotes because it contains a space.

AGENT WINAGENT
PROCESS 'c:\Program files\agentdir\cybAgent.exe'
STATUS RUNNING NOW

Example: Monitor the Agent Process on UNIX Using a Process Name

This example monitors the cybAgent process on a UNIX computer. The job checks the process status immediately and completes successfully if the process is running.

Note: You can also specify a PID number in place of the process name.

AGENT SYSAGENT
PROCESS cybAgent
STATUS RUNNING NOW

Example: Monitor a Process That Has Any Job Number and Is Running Under Any User Name

This example monitors for processes named CYBAGENT running on an i5/OS computer, regardless of the first part (job number) and the second part (user name) of the process ID. The job completes successfully if at least one process named CYBAGENT is running. The entire process ID is enclosed in single quotation marks so that the text following /* is not interpreted as a comment.

AGENT I5AGENT
PROCESS '*ALL/*ALL/CYBAGENT'
STATUS RUNNING NOW

Example: Monitor i5/OS Processes That Have Similar Names

This example monitors all processes running on an i5/OS computer under the JDOE user profile and whose names start with CALC. When all of these processes stop running, the job completes successfully.

AGENT I5AGENT
PROCESS *ALL/JDOE/CALC*
STATUS STOPPED WAIT

Example: Monitor a UNIX Process on an i5/OS Operating System

This example monitors the BMPROC process in the PASE environment on the i5/OS operating system. The job checks the process status immediately and completes successfully if the process is running.

AGENT I5AGENT
PROCESS BMPROC
STATUS RUNNING NOW

Note: You can monitor a UNIX process on an i5/OS operating system by specifying the process name or process ID. However, to monitor an i5/OS process, you must specify the three-part process ID (jobnumber/username/jobname).