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:
|
||||
|
||||
[smart_array_disks_temperature*]
|
||||
[smart_array_disks_temperature]
|
||||
user root
|
||||
|
||||
=head1 NOTES
|
||||
|
@ -57,13 +57,9 @@ getDisks () {
|
|||
|
||||
echo "${slot}${disk}CurrentTemperature(C).label (${disk}) ${diskName} "
|
||||
else
|
||||
diskDetails=`ssacli ctrl slot=${slot} pd ${disk} show detail|grep 'Current Temperature'`
|
||||
temps="${diskDetails}"
|
||||
|
||||
for temp in ${temps[@]}; do
|
||||
line="$(echo -e "${temp}" | tr -d '[:space:]'|sed -e "s/:/.value /g")"
|
||||
temp=`ssacli ctrl slot=${slot} pd ${disk} show detail|grep 'Current Temperature'`
|
||||
line="$(echo -e "${temp}" | tr -d '[:space:]'|sed -e "s/:/.value /g")"
|
||||
echo ${slot}${disk}${line}
|
||||
done
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue