4.44 ProcessUp

Use this Knowledge Script to check whether a specified process is running. If the specified process is running, AppManager raises an event. You also have the option to automatically terminate the process.

This Knowledge Script requires the UNIX agent to run as the root user account.

4.44.1 Resource Object

UNIX CPU folder

4.44.2 Default Schedule

The default interval for this script is Every 5 minutes.

4.44.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Raise an event if the process is running? (y/n)

Set to y to raise events. The default is y.

Collect data for processes running? (y/n)

Select Yes to collect data for charts and reports. If set to y, the script returns a value of 100 when the number of running processes exceeds the threshold, or a value of 0 when the number of running process does not exceed the threshold. The default is unselected.

Processes for which to look (comma-separated)

Enter one or more process names, separated by commas and no spaces. For example:

grep,batch

Maximum number of each process required (comma-separated)

Enter the number of instances required to generate an event for each process, separated by commas and no spaces. AppManager reports an event when the number of instances is running for each process. The default is 0,0. For example:

3,4

Kill the running process? (y/n)

Select Yes to kill the specified processes if they are detected running. The default is unselected.

Event severity level for process running

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when AppManager identifies the specified process as being up. The default is 10.

Event severity level for failed to kill process

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when AppManager identifies the specified process as being up and but the attempt to kill the process failed. The default is 10.

Enable debugging? (y/n)

Select Yes to enable debugging. The default is unselected.