pingd - 世界上最簡單的監控服務
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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!