I'm new to the forum so hello everybody and thanks for your reading
I bought a Raspberry Pi B+ about a year ago to monitor temperature in my house.
I was running on Raspbian Wheezy, sensors are 12 X Ds18B20 and I'm using Munin to log and graph.
Everything was running like a charm since this moment, munin was graphing all the 12 sensors on a single graphic like I wanted it to.
This weekend, we had strong winds and a lot of power outage here in Quebec, Canada, Raspberry wouldn't boot after, I only got kernel panic errors. I tried to recover my SD Card data but it was corrupted. My only choice was to format and start again. (No I haven't got any backup... next time!!!)
So I'm now with a new install of Raspbian Jessie, did update, upgrade, in static IP, installed Munin-node, Apache2, all the stuff for 1-wire sensors....
My problem is here:
When I run the Munin-run command on my temp plugin, I'm seeing all my sensors data like I should:
pi@raspberrypi:~ $ sudo munin-run temp
exterieur.value -12.25
airchaud.value 20.875
cuisine.value 19.5
poele.value 29.812
2eetage.value 18.812
eauchaude.value 33.687
cave.value 21.125
eaufroide.value 15.625
piscine.value -0.562
cheminee.value 26.437
solage.value 4.125
grenier.value -12.5
pi@raspberrypi:~ $
But in my graph temp-day.png, I only got the first value line logging (exterieur)
I grabbed the shell script from
https://blog.bandinelli.net/index.php?p ... 0-et-Munin
and duplicated it 12 times as I dit a year ago.
Here's the first 2 sensors part of the plugin:
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Temperature probe 1
graph_vlabel temperature_1
exterieur.label exterieur
EOM
exit 0;;
esac
printf "exterieur.value "
cat /sys/bus/w1/devices/28-00000687a877/w1_slave | grep "t=" | awk -F "t=" '{print $2/1000}'
case $1 in
config)
cat <<'EOM'
airchaud.label airchaud
EOM
exit 0;;
esac
printf "airchaud.value "
cat /sys/bus/w1/devices/28-0000068791ac/w1_slave | grep "t=" | awk -F "t=" '{print $2/1000}'
The rest is copy and paste of the 2nd sensor...
What's wrong with this plugin/script.
Thanks!
GearPower