Configuring processes
On the Monitor Configuration page, click Add to add a new monitor configuration, or select an existing monitor configuration and click Edit
to update it.
On the Add Monitor Types dialog, with the Monitoring Profile set to Complete or Process, and the Monitor Type set to Processes, provide the following details:
Field | Description |
---|---|
List of Processes | |
Process Details | |
Process Label | Enter a display name for process (s) to be monitored. The display name (process label) cannot contain special characters ( . [ ! @ # $ % ? { } ^ \ \ / | + = & * ( ) ) ; ] ) and blank spaces. The label can contain a maximum of 100 characters. For example: Display name can be sshd_proc, patrolagent_proc. |
Monitored Process String | Enter a string that matches names of processes to be monitored. Input may also be a regular expression pattern. For example:
|
Minimum Count | Select a minimum limit for which an alert should be generated if the number of processes drops below the specified limit. |
Maximum Count | Select a maximum limit for which an alert should be generated if the number of processes exceed the specified limit. |
Acceptable process owner | Enter the name of the user who owns the process. Regular expressions are supported. See process configuration examples. |
Use Process Owners for Filtering? | Select this check box to filter processes based on the process owners. See process configuration examples. |
Parent Process ID Must Be 1 | Select this check box if the processes should have their parent process id as 1. See process configuration examples. |
Filter Processes with Parent Process ID 1 | Select this check box to filter the processes with parent process id as 1. See process configuration examples. |
Process Restart Options | |
Restart Automatically | From the drop list, select one of the following options: Yes --indicates that the process will be restarted automatically if BMC PATROL detects it has stopped. If you select this option, the PATROL KM for UNIX will attempt to restart the process when it detects that the process instance count has fallen below the specified minimum threshold. The KM uses the value in the Command Execution Attempts field to determine how many times it will try to restart a process. Note: To restart a process automatically, you must provide a start command and a command execution account user name and password in the appropriate fields on this dialog box. No --indicates that the process must be restarted manually if it stops. |
Command Execution Attempts | Type a value in this field to set the number of times the host will attempt to run a Start Process or Stop Process command before it stops trying to run the command. The value that you enter in this field must be a 1 or greater |
Start Command | Type the command string that will start the process instance. You must specify a command execution user account and password if you want to use the Start command. |
Stop Command | Type the command string that will stop the process instance. You must specify a command execution user account and password if you want to use the Stop command |
Command Execution User Name | Type the user ID under which the command will be executed. You must specify a command execution user account and password if you want to use the Start and Stop commands. |
Command Execution Password | Type the password for the user ID under which the command will be executed. You can leave this field blank; the KM will accept a null password. You must specify a command execution user account and password if you want to use the Start and Stop commands. |
Process Alert Options | |
Alert Delay Count | Select the number of collection intervals after which the delay alert will be generated. See process configuration examples. |
Alert State | Select the type of process alert state.
|
Add to List | Click this option for confirming the configuration information that you provided and adding the process name to the list of processes. |
Modify Selection | Select one of the items that you added to the list in the preceding step, and click this option to modify details. |
Remove from List | Select the items added earlier and click this option to delete that item from the list of configured processes and the clear the details provided in the earlier fields. |
Process configuration examples
The following table demonstrates how specific filters are processed by the filter rules:
Scenario | Example | Comments |
---|---|---|
To receive an alert if the process count drops below | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 | None |
To monitor processes started by authorized users and | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Acceptable process owner: abc | If "xyz" user starts bash process |
To monitor process started by a specific user and | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Acceptable process owner: abc|pqr|xyz Use Process Owners for Filtering?: Select the checkbox | A pipe separated list or a regular expression of Here, abc, pqr and xyz are acceptable process owners. |
To monitor processes whose Parent Process ID is one | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Parent Process ID must be 1: Select the checkbox Filter Processes with Parent Process ID 1: Do not select the checkbox | This configuration is usually suitable for system processes with parent process ID 1. If for some process, the parent PID is not 1, ProcessParentPID1 would be in WARN/ALARM state. |
To filter processes whose Parent Process ID is one | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Parent Process ID must be 1: Select checkbox Filter Processes with Parent Process ID 1: Select checkbox | Exclude all processes which match the Process Name String criteria but whose parent PID is not 1 |
To delay alert by 'N' number of collections | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Alert Delay Count: 3 Alert State: Warning or Alarm | This will delay an alert if some process violates the |
To avoid delay and get immediate alert if a process | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Alert Delay Count: 0 Alert State: Warning or Alarm | None |
To monitor processes that begin with /usr/sbin | Process Label: bash sys_processes Process Name String: bash.* ^/usr/sbin | Monitors all the processes that Monitor processes like: /usr/sbin/sshd /usr/sbin/syslogd /usr/sbin/inetd |
Related topics