This subsection provides an example of using an alarm with the function that collects information about the application operating status.
The following explains settings for monitoring whether a specific process is running, from several monitoring targets.
For environments in which only one of the following processes is normally running, the following procedure sets an abnormal alarm to be reported when multiple processes (two or more) are started or stopped.
Table 6-10 Example of specific process start
Process name | Command line |
---|---|
GyoumuProcess | GyoumuProcess -a 1 |
Process01 Kind: Select Execute.
Process01 Name: Enter GyoumuProcess. (Enter the process name)
Process01 Range: Specify 1-1.
Table 6-11 Results for the values of each field in the PD_APP record
Field name | Value |
---|---|
Process01 Count | 1#1 |
Process01 Status | NORMAL#2 |
Application Status | NORMAL#2 |
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Name.
Condition: Select =.
Abnormal value: Enter GyoumuProcess Monitor.
Warning value: Enter GyoumuProcess Monitor.
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Status.
Condition: Select <>.
Abnormal value: Enter NORMAL.
Warning value: Enter NORMAL.
Alarm conditions are evaluated using AND. To monitor only the results for Application Status without specifying an instance, specify only Application Status, <>, and NORMAL.
The following explains settings for monitoring whether a process containing arguments is running.
The following procedure sets an abnormal alarm to be reported when the following process containing arguments stops.
Table 6-12 Example of starting the process with arguments
Process name | Command line |
---|---|
GyoumuProcess | GyoumuProcess -a 1 |
Process01 Kind: Select Command Line.
Process01 Name: Enter GyoumuProcess. (Enter the command line)
Process01 Range: Enter 1-1.
Table 6-13 Results for the values of each field in the PD_APP record
Field name | Value |
---|---|
Process01 Count | 1#1 |
Process01 Status | NORMAL#2 |
Application Status | NORMAL#2 |
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Name.
Condition: Select =.
Abnormal value: Enter GyoumuProcess Monitor (the instance name set in step 1).
Warning value: Enter GyoumuProcess Monitor (the instance name set in step 1).
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Status.
Condition: Select <>.
Abnormal value: Enter NORMAL.
Warning value: Enter NORMAL.
Alarm conditions are evaluated using AND. To monitor only the results for Application Status without specifying an instance, specify only Application Status, <>, and NORMAL.
The following explains settings for monitoring whether monitored processes are all running.
The following procedure sets an abnormal alarm to be reported when at least one of the following five processes has stopped, but not to be reported when they are all running.
Table 6-14 Example of startup for five processes
Process name | Command line |
---|---|
GyoumuProcess1 | GyoumuProcess1 -a 1 |
GyoumuProcess2 | GyoumuProcess2 -a 2 |
GyoumuProcess3 | GyoumuProcess3 -a 3 |
GyoumuProcess4 | GyoumuProcess4 -a 4 |
GyoumuProcess5 | GyoumuProcess5 -a 5 |
Process01 Kind: Select Execute.
Process01 Name: Enter GyoumuProcess*.#
Process01 Range: Enter 1-5.
Table 6-15 Results for the values of each field in the PD_APP record
Field name | Value |
---|---|
Process01 Count | 5#1 |
Process01 Status | NORMAL#2 |
Application Status | NORMAL#2 |
Record: Select Application Summary (PD_APP).
Monitored field: Select Process01 Count.
Condition: Select <.
Abnormal value: Enter 5.
Warning value: Enter 5.
If all five processes are running, no alarm is reported. An alarm is reported when at least one process stops. Since alarm conditions are evaluated using AND, an abnormal alarm cannot be set to report for a running process count other than from 1 to 5.
The following explains settings for monitoring whether a given process is running when there are multiple processes for which the first 31 bytes of the names are the same.
The following procedure sets an abnormal alarm to be reported when either of the following two processes is running and multiple 1234567890123456789012345678901A processes are started or stopped.
Table 6-16 Example of processes running for which the first 31 bytes of the names are the same
Process name | Command line |
---|---|
1234567890123460000000000000000A | 1234567890123456789012345678901A -A |
1234567890123456789012345678901B | 1234567890123456789012345678901B -B |
Process01 Kind: Select Execute.
Process01 Name: Enter 1234567890123456789012345678901A.
Process01 Range: Enter 1-1.
Table 6-17 Results for the values of each field in the PD_APP record
Field name | Value |
---|---|
Process01 Count | 1#1 |
Process01 Status | NORMAL#2 |
Application Status | NORMAL#2 |
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Name.
Condition: Select =.
Abnormal value: Enter Long Name Process Monitor (the instance name set in step 1).
Warning value: Enter Long Name Process Monitor (the instance name set in step 1).
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Status.
Condition: Select <>.
Abnormal value: Enter NORMAL.
Warning value: Enter NORMAL.
In addition to the above monitoring, to monitor the 1234567890123456789012345678901B process using a monitoring method other than what has already been used, use an instance name different than the one above, and add the instance name to the condition in the Application Name field of the alarm setting.
The following explains settings for monitoring whether a process is running in a monitored global zone.
When the following process is running in both of the global zone environment and a non-global zone environment, the following procedure sets an abnormal alarm to be reported when multiple processes are running or stopped in the global zone.
Table 6-18 Example of the process running in the global zone environment
Process name | Command line |
---|---|
GyoumuProcess.exe | GyoumuProcess |
Yes
ADD AN APPLICATION MONITORING SETTING:Global Zone Process Monitor
ADD AN APPLICATION MONITORING SETTING FOR VIRTUAL ENVIRONMENT:0
Process01 Kind: Select Execute.
Process01 Name: Enter GyoumuProcess.
Process01 Range: Enter 1-1.
Table 6-19 Results for the values of each field in the PD_APP record
Field name | Value |
---|---|
Process01 Count | 1#1 |
Process01 Status | NORMAL#2 |
Application Status | NORMAL#2 |
Product: Select UNIX(7.6).
Alarm table name: Enter AlarmTable1.
Alarm name: Enter GyoumuProcess Alarm.
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Name.
Condition: Select =.
Abnormal value: Enter Global Zone Process Monitor (the instance name set in step 2).
Warning value: Enter Global Zone Process Monitor (the instance name set in step 2).
Record: Select Application Summary (PD_APP).
Monitored field: Select Application Status.
Condition: Select <>.
Abnormal value: Enter NORMAL.
Warning value: Enter NORMAL.