mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Patched version as outlined earlier
This commit is contained in:
parent
e322629df2
commit
ed1ada4d2a
@ -37,10 +37,10 @@
|
||||
#
|
||||
#%# family=contrib
|
||||
|
||||
HDDTEMP=/usr/sbin/hddtemp
|
||||
hddtemp=${hddtemp:-/usr/sbin/hddtemp}
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -x "$HDDTEMP" ]; then
|
||||
if [ -x "$hddtemp" ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
else
|
||||
@ -55,10 +55,8 @@ if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel temp in °C'
|
||||
echo 'graph_category sensors'
|
||||
#for a in $drives ; do echo $a.label $a ; done
|
||||
for a in $drives ; do echo $a.label $a `hddtemp -q /dev/$a | cut -d: -f 2` ; done
|
||||
for a in $drives ; do echo $a.label $a `$hddtemp -q /dev/$a | cut -d: -f 2` ; done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for a in $drives ; do printf "$a.value $(hddtemp -n -q /dev/$a)\n" ; done
|
||||
|
||||
for a in $drives ; do printf "$a.value $($hddtemp -n -q /dev/$a)\n" ; done
|
||||
|
Loading…
Reference in New Issue
Block a user