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

blov2015-12-30 16:00:00 • 7950 次点击    
这是一个分享于 2015-12-30 16:00:00 的项目,其中的信息可能已经有所发展或是发生改变。

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

Ping monitoring engine used in https://ping.ggRead More

Latest commit to the master branch on 5-2-2016
Download as zip
授权协议:
MIT
开发语言:
Google Go 查看源码»
操作系统:
跨平台
7950 次点击  
加入收藏 微博
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传