Checks for a bunch of domains their
Project for blog post Coding Kata: Site Heartbeat in Elixir and Golang.
depends on Go 1.5
On Ubuntu 14.04 the standard is Go 1.2. To install Go 1.5 follow this instructions.
go get github.com/PuerkitoBio/goquery go get github.com/ronnyhartenstein/site-heartbeat-golang
go build github.com/ronnyhartenstein/site-heartbeat-golang
Build for other target platform:
env GOOS=linux GOARCH=386 go build github.com/ronnyhartenstein/site-heartbeat-golang
hosts.txt: List of domains and their title (regexp) -> see
hosts.txt.dist as template
mailer.conf: Mailer config to send the "Site down" mails (yet not configurable) -> see
mailer.conf.dist as template
Disclaimer and Contribute
It's a prototype and hardly situated for my use case.
If you want to have more configurations, more mailer setups, more flags, I'm curious to see your PR :) So fork it and try your best. It's just Go.