pingd - 世界上最简单的监控服务

jopen 8年前

pingd 是世界上最简单的监控服务,使用 golang 编写。软件支持 IPv6,但是服务器不支持。

pingd 允许同时 ping 上千个 IPs,在此期间还可以管理监控的主机。

用户提供主机名或者 IP,还有用户邮箱地址,就可以使用 3 个生成 URLs 来开启,停止或者删除你的追踪。每当你的服务器停机或者后台在线都会发送通知,还包含控制 URLs。

~$# start monitoring your server with a single curl command.  ~$curl ping.gg/me@example.org/104.28.13.51  [ ok ] Ping alert created for host '104.28.13.51' and email 'me@example.org'. Check your email to activate it.  ~$# activate the first and the next ones are activated automatically.  ~$curl ping.gg/me@example.org/example.org  [ ok ] Ping alert created for host 'example.org' and email 'me@example.org'.  ~$# you can skip the IP if you run it from the server, watch out for proxies, etc.  ~$curl ping.gg/me@example.org  [ ok ] Ping alert created for host '104.28.12.51' (your IP) and email 'me@example.org'.

ping.gg 示例:

# get the example  export GOPATH=$PWD  go get github.com/pinggg/pingd/examples/httpmail   # start pinging 8.8.8.8 and 8.8.4.4 and email you if they go down  sudo bin/httpmail -email=mymail@example.org 8.8.8.8 8.8.4.4   # add a new host while running  curl localhost:7700/4.4.2.2   # stop pinging 8.8.4.4  curl -XDELETE localhost:7700/8.8.4.4

官方网站:http://www.open-open.com/lib/view/home/1451626328730