Created
March 4, 2014 18:04
-
-
Save hsiboy/9352115 to your computer and use it in GitHub Desktop.
Create rrd database
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 | |
rrdtool create multirPItemp.rrd --step 300 \ | |
DS:in_temp:GAUGE:600:-30:50 \ | |
DS:out_temp:GAUGE:600:-30:50 \ | |
RRA:AVERAGE:0.5:1:12 \ | |
RRA:AVERAGE:0.5:1:288 \ | |
RRA:AVERAGE:0.5:12:168 \ | |
RRA:AVERAGE:0.5:12:720 \ | |
RRA:AVERAGE:0.5:288:365</pre> | |
The graphs are generated every five minutes from a cron job with with this script | |
<pre class="brush: bash">#!/bin/bash | |
RRDPATH="/home/pi/temperature/" | |
RAWCOLOUR="#FF0000" | |
TRENDCOLOUR="#0000FF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment