Adding Processes for Monitoring
You can monitor the number of processes on a server or collect the number of key processes to check whether the key processes are running properly.
Suppose that the following processes are running on a server:
/usr/bin/java /usr/bin/ntpd /telescope /usr/bin/python
| Keyword | Collected Processes | Result |
|---|---|---|
| java | 1 | A process name is hit. |
| telescope | 1 | A process name is hit. |
| usr | 3 | Three process paths are hit. |
You do not need to configure the number of processes. After you set the process keyword, the system will update the number of matched processes.
Prerequisites
- You have installed the Cloud Eye Agent on a server. For details, see Installing the Agent.
- You have obtained the names of the processes to monitor. To obtain a process name, perform the following operations:
- Linux
- Log in to the server as user root and view the processes running on the server.
ps -ef
- In the command output, obtain the ID of the target process in the CMD column.
- Log in to the server as user root and view the processes running on the server.
- Windows
- Log in to the server as an administrator and open the task manager.
- In the task manager, click Details to view the processes running on the server.
- Linux
Constraints
There is no limit on the number of processes to be added, but the Agent collects metrics from only the first 16 processes.
Configuring Monitoring for Specific Processes
- Log in to the Cloud Eye console.
- Perform the following operations based on your resources:
- To check the process monitoring of an ECS, choose Server Monitoring > Elastic Cloud Server.
- To check the process monitoring of a BMS, choose Server Monitoring > Bare Metal Server.
- Locate the target server and click View Metric.
- Click the Process Monitoring tab.
- Click Add Process under Custom Process Monitoring.
- On the Add Process page, the cloud product and monitoring scope use the default settings of the current resource and can be changed. Configure the task name and process name for process monitoring. Figure 1 Adding processes for monitoring
Table 1 Adding processes for monitoring Parameter
Description
Example Value
Task
Name of a process monitoring task. The value can only contain letters, digits, slashes (/), parentheses, number signs (#), underscores (_), asterisks (*) at the beginning, and hyphens (-). The value cannot start with hyphen (-). The task name can contain up to 255 characters.
Once the task is created, its name cannot be changed.
Process_Monitoring
Description
(Optional) Description of the process monitoring task.
-
Resource Type
Cloud service that requires process monitoring. You can select Elastic Cloud Server or Bare Metal Server.
Once the task is created, the cloud product cannot be modified.
Elastic Cloud Server
Monitoring Scope
Resources that require process monitoring.
-
Monitored Processes
Name of the monitored processes. The value can only contain letters, digits, slashes (/), parentheses, number signs (#), underscores (_), asterisks (*) at the beginning, and hyphens (-). The value cannot start with hyphen (-). It can contain up to 255 characters.
java
- Click OK.
After the configuration is complete, you can view the number of processes matched in the Custom Process Monitoring area.
Batch Adding Processes for Monitoring
- Log in to the Cloud Eye console.
- Choose Server Monitoring > Process Monitoring.
- On the Process Monitoring page, click Add Process.
- Configure a task name, select a resource type, select specified resources, and configure the process names. For details about the parameters, see Table 2. Figure 2 Adding processes for monitoring
Table 2 Adding processes for monitoring Parameter
Description
Example Value
Task
Name of a process monitoring task. The value can only contain letters, digits, slashes (/), parentheses, number signs (#), underscores (_), asterisks (*) at the beginning, and hyphens (-). The value cannot start with hyphen (-). The task name can contain up to 255 characters.
Once the task is created, its name cannot be changed.
Process_Monitoring
Description
(Optional) Description of the process monitoring task.
-
Resource Type
Cloud service that requires process monitoring. You can select Elastic Cloud Server or Bare Metal Server.
Once the task is created, the cloud product cannot be modified.
Elastic Cloud Server
Monitoring Scope
Resources that require process monitoring.
-
Monitored Processes
Name of the monitored processes. The value can only contain letters, digits, slashes (/), parentheses, number signs (#), underscores (_), asterisks (*) at the beginning, and hyphens (-). The value cannot start with hyphen (-). It can contain up to 255 characters.
java
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot