(up)ing is a simple Bash script to get notified as soon as a currently offline host is reachable again.
brew tap frdmn/homebrew-formulas
brew install uping
$ uping [hostname] <option>
for example
$ uping frd.mn
frd.mn The host "frd.mn" seems to be unreachable
Waiting for host to come back: ..... ✔
The host "frd.mn" seems to be reachable again
If you are on OS X and you have terminal-notifier
installed, you get a fancy notification as well:
If you don't have terminal-notifier
, you can install it using Homebrew:
brew install terminal-notifier
0.2.2