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

blov • 7209 次点击    
这是一个分享于 的项目,其中的信息可能已经有所发展或是发生改变。
pingd 是世界上最简单的监控服务,使用 golang 编写。软件支持 IPv6,但是服务器不支持。 pingd 允许同时 ping 上千个 IPs,在此期间还可以管理监控的主机。 用户提供主机名或者 IP,还有用户邮箱地址,就可以使用 3 个生成 URLs 来开启,停止或者删除你的追踪。每当你的服务器停机或者后台在线都会发送通知,还包含控制 URLs。 <pre class="brush:shell;toolbar: true; auto-links: false;">~$# 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 &#39;104.28.13.51&#39; and email &#39;me@example.org&#39;. 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 &#39;example.org&#39; and email &#39;me@example.org&#39;. ~$# 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 &#39;104.28.12.51&#39; (your IP) and email &#39;me@example.org&#39;.</pre> ping.gg 示例: <pre class="brush:shell;toolbar: true; auto-links: false;"># 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</pre>
授权协议:
MIT
开发语言:
Google Go 查看源码»
操作系统:
跨平台
7209 次点击  
加入收藏 微博
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传