Created
December 30, 2014 01:42
-
-
Save informationsea/fdb17f9a8a69e910796c to your computer and use it in GitHub Desktop.
Munin plugin for Raspberry Pi & ADT7410
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
. $MUNIN_LIBDIR/plugins/plugin.sh | |
if [ "$1" = "autoconf" ]; then | |
if [ -r /sys/class/thermal/thermal_zone0/temp ];then | |
echo yes | |
exit 0 | |
else | |
echo "no (missing /sys/class/thermal/thermal_zone0/temp)" | |
exit 0 | |
fi | |
fi | |
if [ "$1" = "config" ]; then | |
echo graph_title CPU core temperature | |
echo graph_args --base 1000 -l 0 | |
echo graph_info CPU core temperature | |
echo graph_category sensors | |
echo temp0.label Core | |
echo temp0.cdef temp0,1000,/ | |
echo temp1.label Room | |
exit 0; | |
fi | |
echo temp0.value `cat /sys/class/thermal/thermal_zone0/temp` | |
echo temp1.value `/usr/local/bin/ADT7410` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment