Last active
September 10, 2018 11:51
-
-
Save kminiatures/4f314baeb9cf6e0977ea to your computer and use it in GitHub Desktop.
munin temperature plugin. for Raspberry Pi and DS18B20
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/sh | |
case $1 in | |
config) | |
cat <<'EOM' | |
graph_title Temperature | |
graph_vlabel Temperature | |
temperature.label temperature | |
EOM | |
exit 0;; | |
esac | |
printf "temperature.value " | |
EMP=`cat /sys/bus/w1/devices/*/w1_slave | grep t= | sed s/.*t=//` | |
echo "scale=2; $TEMP / 1000" | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment