Created
August 5, 2016 20:50
-
-
Save jacoelho/177925a222753bbaa0d3c1a82bc95704 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| HOSTNAME="${COLLECTD_HOSTNAME:-localhost}" | |
| INTERVAL="${COLLECTD_INTERVAL:-60}" | |
| while sleep "$INTERVAL"; do | |
| VALUE=do_magic() | |
| echo "PUTVAL \"$HOSTNAME/exec-magic/gauge-magic_level\" interval=$INTERVAL N:$VALUE" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment