Skip to content

Commit d48f13b

Browse files
committed
Sanitize series names in Dovecot maildirs plugin
1 parent 015fe9a commit d48f13b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ansible/roles/munin-node/templates/plugins/lovelace/dovecot_maildirs.sh.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ print_maildir_config() {
77
find . -maxdepth 1 -type d \
88
| tail -n +2 \
99
| awk -F / '{
10-
print $2 ".draw AREASTACK"
11-
print $2 ".label " $2
10+
sanitized = $2
11+
sub(/\./, "_", sanitized)
12+
print sanitized ".draw AREASTACK"
13+
print sanitized ".label " $2
1214
}'
1315
}
1416

0 commit comments

Comments
 (0)