mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 05:42:13 +01:00
c2b8d7315d
I accidently changed this to dev. This also works but breaks existing history
22 lines
672 B
Text
22 lines
672 B
Text
config_df() {
|
|
echo "graph_title Filesystem usage (in %)
|
|
graph_args --upper-limit 100 -l 0
|
|
graph_vlabel %
|
|
graph_category disk
|
|
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
|
|
do
|
|
PNAME=$(clean_fieldname "$mp")
|
|
echo "$PNAME.label $mp"
|
|
echo "$PNAME.info $dev -> $mp"
|
|
echo "$PNAME.warning 92"
|
|
echo "$PNAME.critical 98"
|
|
done
|
|
}
|
|
fetch_df() {
|
|
df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | while read dev type blocks used avail pct mp
|
|
do
|
|
PNAME=$(clean_fieldname "$mp")
|
|
echo "$PNAME.value" "${pct%\%}"
|
|
done
|
|
}
|