mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
muninlite: Enable the df plugin again and fix parsing disk usage
Closes: #1926 Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
committed by
Jonathan McCrohan
parent
e3b0a20c44
commit
4100e103fc
10
admin/muninlite/patches/001-fix_disks.patch
Normal file
10
admin/muninlite/patches/001-fix_disks.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/plugins/df 2015-11-07 17:05:46.000000000 +0100
|
||||
+++ b/plugins/df 2015-11-07 17:05:49.183925905 +0100
|
||||
@@ -19,6 +19,6 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user