From 5ace6a92f190afdee48a9920353307604a5c8280 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 19 Jun 2026 14:07:25 +0200 Subject: [PATCH] roles/base/munin-node/files --- .../munin-node/files/default/plugins.somesible/bkpsize | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/base/munin-node/files/default/plugins.somesible/bkpsize b/roles/base/munin-node/files/default/plugins.somesible/bkpsize index cdf4fcb..31a3af1 100644 --- a/roles/base/munin-node/files/default/plugins.somesible/bkpsize +++ b/roles/base/munin-node/files/default/plugins.somesible/bkpsize @@ -14,7 +14,7 @@ if [ "$1" = "config" ]; then echo "graph_vlabel size of each borg repo" echo "graph_args -l 1 --base 1024 --logarithmic" - for d in /bkp/storage-*/**/config; do + for d in /bkp/storage-local/**/config; do export d=`echo "$d"|sed -e 's#/config$##g'` export dclean=`echo "$d" | sed -E -e 's#/bkp/storage-##'` export did=`echo "$dclean" | sed -E -e 's#[/\.]#_#g'` @@ -25,15 +25,15 @@ if [ "$1" = "config" ]; then exit 0 fi -if [[ -z "`find /tmp/bkpsize.data -mmin -59 2>/dev/null;true`" ]] then +if [[ -z "`find /tmp/bkpsizelocal.data -mmin -59 2>/dev/null;true`" ]] then for d in /bkp/storage-*/**/config; do export d=`echo "$d"|sed -e 's#/config$##g'` export dclean=`echo "$d" | sed -E -e 's#/bkp/storage-##'` export did=`echo "$dclean" | sed -E -e 's#[/\.]#_#g'` echo "${did}.value `du -sm $d | sed -E -e 's#^([^\s]+)\s+([^ ]+)#\1*1024*1024#'|bc`" - done | sort > /tmp/bkpsize.data.new - mv /tmp/bkpsize.data.new /tmp/bkpsize.data + done | sort > /tmp/bkpsizelocal.data.new + mv /tmp/bkpsizelocal.data.new /tmp/bkpsizelocal.data fi -cat /tmp/bkpsize.data +cat /tmp/bkpsizelocal.data -- 2.47.3