Files
packages/admin/muninlite/patches/004-Fix-previous-change.-The-key-for-config-and-values-w.patch
Rany Hany 7d752193e4 muninlite: add some patches to address old issues
As muninlite doesn't appear to have had a release in a few years and activity
on the git repo appears to have stalled, we add some patches on our end for now.

Patches:

- 001->004 are upstream fixes from master.
- 100 is a submitted PR: https://github.com/munin-monitoring/muninlite/pull/19
  to fix https://github.com/munin-monitoring/muninlite/issues/14.
- 200->204 is a submitted PR to allow customizing the monitored network interfaces:
  https://github.com/munin-monitoring/muninlite/pull/18. Despite the large
  number of patches it is actually a trivial change.

Signed-off-by: Rany Hany <rany_hany@riseup.net>
2025-01-10 00:11:38 +01:00

32 lines
1.1 KiB
Diff

From c2b8d7315d9c9c466537ef60dcdb5bd6733ea809 Mon Sep 17 00:00:00 2001
From: Daniel Alder <daald@users.noreply.github.com>
Date: Thu, 14 Dec 2023 13:26:47 +0100
Subject: [PATCH 4/5] 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
---
plugins/df | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/plugins/df
+++ b/plugins/df
@@ -6,7 +6,7 @@ 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 "$dev")
+ PNAME=$(clean_fieldname "$mp")
echo "$PNAME.label $mp"
echo "$PNAME.info $dev -> $mp"
echo "$PNAME.warning 92"
@@ -16,7 +16,7 @@ graph_info This graph shows disk usage o
fetch_df() {
df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | while read dev type blocks used avail pct mp
do
- PNAME=$(clean_fieldname "$dev")
+ PNAME=$(clean_fieldname "$mp")
echo "$PNAME.value" "${pct%\%}"
done
}