mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
Fix previous change. The key for config and values was the mountpoint
I accidently changed this to dev. This also works but breaks existing history
This commit is contained in:
parent
f55b83fdbd
commit
c2b8d7315d
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ graph_category disk
|
||||||
graph_info This graph shows disk usage on the machine."
|
graph_info This graph shows disk usage on the machine."
|
||||||
df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | while read dev type blocks used avail pct mp
|
df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | while read dev type blocks used avail pct mp
|
||||||
do
|
do
|
||||||
PNAME=$(clean_fieldname "$dev")
|
PNAME=$(clean_fieldname "$mp")
|
||||||
echo "$PNAME.label $mp"
|
echo "$PNAME.label $mp"
|
||||||
echo "$PNAME.info $dev -> $mp"
|
echo "$PNAME.info $dev -> $mp"
|
||||||
echo "$PNAME.warning 92"
|
echo "$PNAME.warning 92"
|
||||||
|
@ -16,7 +16,7 @@ graph_info This graph shows disk usage on the machine."
|
||||||
fetch_df() {
|
fetch_df() {
|
||||||
df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | while read dev type blocks used avail pct mp
|
df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | while read dev type blocks used avail pct mp
|
||||||
do
|
do
|
||||||
PNAME=$(clean_fieldname "$dev")
|
PNAME=$(clean_fieldname "$mp")
|
||||||
echo "$PNAME.value" "${pct%\%}"
|
echo "$PNAME.value" "${pct%\%}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue