Last active
August 29, 2015 14:05
-
-
Save apeckham/f783aa297516663f5c56 to your computer and use it in GitHub Desktop.
collectd exec example
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
<Plugin exec> | |
Exec "ubuntu" "/home/ubuntu/app/magic_level.sh" | |
</Plugin> |
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
HOSTNAME="${COLLECTD_HOSTNAME:-localhost}" | |
INTERVAL="${COLLECTD_INTERVAL:-60}" | |
while sleep "$INTERVAL"; do | |
echo "PUTVAL \"$HOSTNAME/exec-magic/gauge-magic_level\" interval=$INTERVAL N:$(date +%N)" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment