Created
November 19, 2013 00:39
-
-
Save jarajapu/7538115 to your computer and use it in GitHub Desktop.
Revisions
-
jarajapu created this gist
Nov 19, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ ##/bin/bash set -e while true; do awk -v now=`date +%s` -v host=`hostname` \ '{ print "put proc.loadavg.1m " now " " $1 " host=" host; \ print "put proc.loadavg.5m " now " " $2 " host=" host }' \ /proc/loadavg sleep 15 done | nc -w 30 opentsdb 4242