mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
Enable the df plugin again and fix parsing disk usage
Source: patch "001-fix_disks" from OpenWrt Author: Martin Blumenstingl
This commit is contained in:
parent
22468a04a1
commit
d9b1b1ad3f
1 changed files with 1 additions and 1 deletions
|
@ -19,6 +19,6 @@ fetch_df() {
|
|||
do
|
||||
PINFO=$(df -P $PART | tail -1);
|
||||
PNAME=$(echo $PINFO | cut -d\ -f1 | sed 's/[\/.-]/_/g')
|
||||
echo "$PNAME.value" $(echo $PINFO | cut -f5 -d\ | sed -e 's/\%//g')
|
||||
echo "$PNAME.value" $(echo $PINFO | sed -e 's/\%//g' -e 's/ */ /g' | cut -f5 -d' ')
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue