mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Bugfix and re-positioning
This commit is contained in:
parent
19a3cbe397
commit
b26ba8e6bd
2 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ function config() {
|
|||
while read -u 3 -r logfile; do
|
||||
var_prefix="$(echo "$logfile" | sed -r 's/^[^a-zA-Z]+//g' | sed -r 's/[^a-zA-Z0-9]+/_/g')"
|
||||
var="${var_prefix}_label"
|
||||
lbl="${!var:-0}"
|
||||
echo "$var_prefix.label $([ -n "$lbl" ] && echo "$lbl" || echo "$logfile")"
|
||||
lbl="${!var:-$logfile}"
|
||||
echo "$var_prefix.label $lbl"
|
||||
print_warning "$var_prefix"
|
||||
print_critical "$var_prefix"
|
||||
echo "$var_prefix.info Lines that match '${regex}' in log file '$logfile'"
|
Loading…
Add table
Add a link
Reference in a new issue