code cleaup. add disk_usage reporter. add handling for docs(). various tweaks and fixes

This commit is contained in:
Patrick Stadler
2015-02-22 20:45:57 +01:00
parent 8957cb4387
commit bd037022ad
9 changed files with 114 additions and 44 deletions

View File

@@ -4,4 +4,9 @@ report () {
METRIC=$1
VALUE=$2
curl -d "stat=$METRIC&ezkey=$API_KEY&value=$VALUE" http://api.stathat.com/ez
}
docs () {
echo "Send data to StatHat (https://www.stathat.com)."
echo "\$API_KEY=<ez_key>"
}

View File

@@ -4,4 +4,8 @@ report () {
METRIC=$1
VALUE=$2
echo $METRIC: $VALUE
}
docs () {
echo "Print to standard output (e.g. the TTY you're running the script in)"
}