更新以匹配上游修改
This commit is contained in:
+21
-15
@@ -1,28 +1,34 @@
|
||||
# Custom Agent Monitoring Projects
|
||||
---
|
||||
outline: deep
|
||||
---
|
||||
# Customizing Agent Monitoring Items
|
||||
|
||||
## Customizing Monitored Network Interfaces and Disk Partitions
|
||||
## Customize Monitoring for Network Interfaces and Disk Partitions
|
||||
|
||||
Execute the following command to select custom network interfaces and partitions, then restart the Agent for the changes to take effect:
|
||||
Execute the following command to select network interfaces and partitions, then restart the Agent for changes to take effect:
|
||||
|
||||
```bash
|
||||
/opt/nezha/agent/nezha-agent edit
|
||||
```
|
||||
|
||||
## Other Runtime Parameters
|
||||
|
||||
To view the supported parameters, execute:
|
||||
## Additional Runtime Parameters
|
||||
|
||||
### Viewing Supported Parameters
|
||||
To view the supported runtime parameters, please execute the following command:
|
||||
```bash
|
||||
./nezha-agent --help
|
||||
```
|
||||
|
||||
If you installed the Agent using the one-click script, you can edit `/etc/systemd/system/nezha-agent.service` and add the following parameters at the end of the `ExecStart=` line:
|
||||
### Configuring Parameters
|
||||
If you installed the Agent using a one-click script, you can add or modify parameters by editing the system service configuration. Edit the file `/etc/systemd/system/nezha-agent.service` and append your desired parameters at the end of the `ExecStart=` line:
|
||||
|
||||
- `--report-delay`: Controls the interval for reporting system information. The default is 1 second. You can set it to 3 to further reduce the agent's system resource usage (configuration range: 1-4).
|
||||
- `--skip-conn`: Does not monitor connection counts. Recommended for servers with high connection density or high CPU usage.
|
||||
- `--skip-procs`: Does not monitor process counts, which can also reduce Agent resource usage.
|
||||
- `--disable-auto-update`: Disables **automatic updates** for the Agent (security feature).
|
||||
- `--disable-force-update`: Disables **forced updates** for the Agent (security feature).
|
||||
- `--disable-command-execute`: Disables the execution of scheduled tasks and the opening of the online terminal on the Agent (security feature).
|
||||
- `--tls`: Enables SSL/TLS encryption (required if you use nginx to reverse proxy the Agent's gRPC connection and nginx has SSL/TLS enabled).
|
||||
- `--gpu`: Enable GPU monitoring (may need extra dependencies while monitoring GPU utilization. Refer to FAQ - Enable GPU monitoring for any questions.)
|
||||
- `--report-delay`: Sets the interval for reporting system information. The default is 1 second. To reduce system resource usage, you can set this to 3 (valid range: 1-4 seconds).
|
||||
- `--skip-conn`: Disables monitoring of network connections. Recommended for servers with high numbers of connections or high CPU usage.
|
||||
- `--skip-procs`: Disables monitoring of process counts, helping to reduce resource usage of the Agent.
|
||||
- `--disable-auto-update`: Disables the **automatic update** feature of the Agent, enhancing security.
|
||||
- `--disable-force-update`: Disables the **forced update** feature of the Agent, enhancing security.
|
||||
- `--disable-command-execute`: Prevents execution of any scheduled tasks or use of the WebSSH on the Agent, enhancing security.
|
||||
- `--tls`: Enables SSL/TLS encryption. This should be enabled when you are using nginx to reverse proxy the Agent's gRPC connections and nginx is configured with SSL/TLS.
|
||||
- `--gpu`: Enables GPU monitoring. Note: Monitoring GPU usage may require installation of additional dependencies. For more details, refer to the documentation: [Enable GPU Monitoring](/en_US/guide/q9.html).
|
||||
- `--temperature`: Enables hardware temperature monitoring. Only effective on supported hardware, some VPS may not be able to retrieve temperature information.
|
||||
- `-q`, `--silent`: Enables silent mode, suppressing any output or logs to the console.
|
||||
Reference in New Issue
Block a user