Fixed minor bug
This commit is contained in:
parent
5005ca3959
commit
1f520da78c
1 changed files with 3 additions and 7 deletions
|
@ -15,7 +15,7 @@ Maybe works with other HP Prolant Raid cards.
|
||||||
|
|
||||||
/etc/munin/plugin-conf.d/global or other file in that dir must contain:
|
/etc/munin/plugin-conf.d/global or other file in that dir must contain:
|
||||||
|
|
||||||
[smart_array_disks_temperature*]
|
[smart_array_disks_temperature]
|
||||||
user root
|
user root
|
||||||
|
|
||||||
=head1 NOTES
|
=head1 NOTES
|
||||||
|
@ -57,13 +57,9 @@ getDisks () {
|
||||||
|
|
||||||
echo "${slot}${disk}CurrentTemperature(C).label (${disk}) ${diskName} "
|
echo "${slot}${disk}CurrentTemperature(C).label (${disk}) ${diskName} "
|
||||||
else
|
else
|
||||||
diskDetails=`ssacli ctrl slot=${slot} pd ${disk} show detail|grep 'Current Temperature'`
|
temp=`ssacli ctrl slot=${slot} pd ${disk} show detail|grep 'Current Temperature'`
|
||||||
temps="${diskDetails}"
|
line="$(echo -e "${temp}" | tr -d '[:space:]'|sed -e "s/:/.value /g")"
|
||||||
|
|
||||||
for temp in ${temps[@]}; do
|
|
||||||
line="$(echo -e "${temp}" | tr -d '[:space:]'|sed -e "s/:/.value /g")"
|
|
||||||
echo ${slot}${disk}${line}
|
echo ${slot}${disk}${line}
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue