Skip to content

Instantly share code, notes, and snippets.

@ergoz
Created May 27, 2014 13:52
Show Gist options
  • Save ergoz/f61269ce986c3817ea6f to your computer and use it in GitHub Desktop.
Save ergoz/f61269ce986c3817ea6f to your computer and use it in GitHub Desktop.
raspbery pi temp munin plugin
#!/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