This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Parse the Checkmy Website API JSON output and feed it into Graphite | |
# Expect a Check my Website ID as argument | |
# echo "foo 1 timestamp" | nc -u -w 1 127.0.0.1 2003 | |
# url https://api.checkmy.ws/api/status/ea726685-9b45... | |
# Dependencies | |
# Jq version 1.4 mininum : http://stedolan.github.io/jq/ | |
# Netcat |