mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-18 09:30:42 +01:00
df: fix shellcheck error
This commit is contained in:
parent
22b9480e57
commit
1a59d16702
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ graph_info This graph shows disk usage on the machine."
|
|||
for PART in $(df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | sed '/\/[a-z0-9]*$/!d;s/.* \([a-z0-9\/]\{1,\}\)$/\1/g')
|
||||
do
|
||||
PINFO=$(df -P "$PART" | tail -1);
|
||||
PNAME=$(clean_fieldname $(echo "$PINFO" | cut -d " " -f 1))
|
||||
PNAME=$(clean_fieldname "$(echo "$PINFO" | cut -d " " -f 1)")
|
||||
echo "$PNAME.label $PART"
|
||||
echo "$PNAME.info $PNAME -> $PART"
|
||||
echo "$PNAME.warning 92"
|
||||
|
@ -18,7 +18,7 @@ fetch_df() {
|
|||
for PART in $(df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | sed '/\/[a-z0-9]*$/!d;s/.* \([a-z0-9\/]\{1,\}\)$/\1/g')
|
||||
do
|
||||
PINFO=$(df -P "$PART" | tail -1);
|
||||
PNAME=$(clean_fieldname $(echo "$PINFO" | cut -d " " -f 1))
|
||||
PNAME=$(clean_fieldname "$(echo "$PINFO" | cut -d " " -f 1)")
|
||||
echo "$PNAME.value" "$(echo "$PINFO" | sed -e 's/\%//g' -e 's/ */ /g' | cut -d " " -f 5)"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue