Sign inSign up

clibing/monitor

By clibing

Updated over 3 years ago

Image
0

71

clibing/monitor repository overview

琐碎的监控

1. 功能描述

用于监控多次请求,端出口ip的变动状态

  • 检查最近一次与当前端请求测的ip是否发生变动
  • 展示当前端的出口ip

2. 部署

version: '3'

services:
  monitor-ip:
    image: clibing/monitor:ip
    container_name: monitor-ip
    ports:
      - 8080:8080
    command: ["/bin/monitor", "-port", "8080"]

3. 请求

获取当前出口ip

curl --location --request GET 'https://tool.linuxcrypt.cn/ip' 

检查当前出口ip是否发生变动

例如 source是 树莓派4

curl --location --request GET 'https://tool.linuxcrypt.cn/checkRemoteIp' \
--header 'Content-Type: application/json' \
--data-raw '{
    "source":"raspi4"
}'

响应

{
    "code": 200,
    "data": {
        "source": "raspi4",
        "ip": "114.113.120.5",
        "last_ip": "114.113.120.5",
        "different": false
    }
}

Tag summary

Content type

Image

Digest

sha256:c006a04da

Size

10.4 MB

Last updated

over 3 years ago

docker pull clibing/monitor:ip