Created
May 27, 2014 13:52
-
-
Save ergoz/f61269ce986c3817ea6f to your computer and use it in GitHub Desktop.
raspbery pi temp munin plugin
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
#!/bin/sh | |
case $1 in | |
config) | |
cat <<'EOM' | |
graph_title Temperature | |
graph_vlabel temp in C | |
graph_args --base 1000 -l 0 | |
graph_category Temperature | |
temp.label Temperature | |
temp.warning 60 | |
temp.critical 85 | |
EOM | |
exit 0;; | |
esac | |
temp=`sudo /opt/vc/bin/vcgencmd measure_temp | cut -d"=" -f 2 | cut -d"'" -f 1` | |
echo "temp.value "$temp"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment