Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 部署服务宕机不触发告警 #225

Closed
123edg opened this issue Sep 10, 2023 · 3 comments
Closed

docker 部署服务宕机不触发告警 #225

123edg opened this issue Sep 10, 2023 · 3 comments

Comments

@123edg
Copy link

123edg commented Sep 10, 2023

docker-compose 文件

services:
  serverstatus:
    image: cppla/serverstatus:latest
    container_name: serverstatus
    restart: unless-stopped
    volumes:
      - ./server/config.json:/ServerStatus/server/config.json 
      - ./web/json:/usr/share/nginx/html/json
    ports:
      - 25601:35601
      - 18080:80

config.json watchdog代码片段

 {
                        "name": "服务器离线",
                        "rule": "online4=0&online6=0",
                        "interval": 100,
                        "callback": "https://api2.pushdeer.com/message/push?pushkey=xxx&text="
 }   

请问我用上面文件部署后,在client端停止客户端进程,一直都不触发告警,请问是什么原因

@cppla
Copy link
Owner

cppla commented Oct 9, 2023

callback的url 和 rule 中的 & 冲突???

@cppla
Copy link
Owner

cppla commented Oct 9, 2023

试下新版本

@escher248
Copy link

试下新版本

已经可以了,谢谢大佬

@cppla cppla closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants