This commit is contained in:
naiba 2022-04-30 15:41:06 +08:00 committed by GitHub
parent 19f48a6edc
commit a8defa654c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ implement `/opt/nezha/agent/nezha-agent --edit-agent-config` to select custom NI
by executing `./nezha-agent --help` View supported parametersIf you use one-click scriptingcan be edited `/etc/systemd/system/nezha-agent.service`exist `ExecStart=` At the end of this line add
- `--report-delay` System information reporting intervalThe default is 1 Secondcan be set to 3 to further reduce agent End-system resource usageConfiguration interval 1-4
- `--skip-conn` Do not monitor the number of connectionsif Airport/connection-intensive machines High CPU usageRecommended settings
- `--skip-conn` Do not monitor the number of connectionsif vpn-gateway/connection-intensive machines High CPU usageRecommended settings
- `--skip-procs` Do not monitor the number of processescan also be reduced agent occupy
- `--disable-auto-update` prohibit **auto update** Agentsafety features
- `--disable-force-update` prohibit **Force update** Agentsafety features
@ -53,7 +53,7 @@ Use this feature to periodically combine restic、rclone back up the serverOr
`#NEZHA#` is the panel message placeholderThe panel will automatically replace the placeholder with the actual message when the notification is triggered
Body content is`JSON` formatted**when the request type is FORM Time**value is `key:value` form`value` Placeholders can be placed insideAutomatically replace when notified。**when the request type is JSON** It will only be submitted directly to the`URL`
Body content is`JSON` formatted**when the request type is FORM Time**value is `key:value` form`value` Placeholders can be placed insideAutomatically replace when notified。**when the request type is JSON** It will only be submitted directly to the`URL`
URL Placeholders can also be placed insideSimple string replacement is done when requested。
@ -68,7 +68,7 @@ Refer to the example belowvery flexible。
- request method: GET
- request type: default
- Body: null
- URL Parameter acquisition instructionsbotXXXXXX Neutral XXXXXX is in telegram Follow the official @Botfather enter/newbot Create new botbotTimewill provide tokenin prompt Use this token to access the HTTP API:next linehere 'bot' Three letters are indispensable。create bot 后need first telegram neutral BOT have a conversationJust send a messagethen available API Send a message。YYYYYY Yes telegram user's number ID。with the robot@userinfobot Dialogue is available。
- URL Parameter acquisition instructionsbotXXXXXX Neutral XXXXXX is in telegram Follow the official @Botfather enter/newbot Create new botbotTimewill provide tokenin prompt Use this token to access the HTTP API:next linehere 'bot' Three letters are indispensable. After bot created, You need to chat with the BOT to have a conversationJust send a messagethen available API Send a message. YYYYYY is telegram user's number ID。with the robot @userinfobot Dialogue is available。
2. Add an offline alarm
@ -96,7 +96,7 @@ Refer to the example belowvery flexible。
- durationduration in secondsSampling records in seconds 30% The above trigger threshold will only alarmAnti-Data Pin
- min/max
- flow、Network speed class value as bytes1KB=1024B1MB = 1024\*1024B
- 内存、hard disk、CPU occupancy percentage
- memory、hard disk、CPU occupancy percentage
- Offline monitoring without setup
- cover `[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]`
- `0` monitor allpass `ignore` ignore specific server
@ -281,7 +281,7 @@ When using a reverse proxy, you need to target `/ws`,`/terminal` path WebSocket
}
```
If not a pagodastill in `server{}` add this paragraph
If not a Aapanel/Pagoda, still in `server{}` add this paragraph
```nginx
location / {