Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update plugins/zimbra/zimbra-mailboxsizes

Adding support for dots in mailboxses names ( mail.box@example.net )
  • Loading branch information...
commit dfa9d73493ecb647c835ae2e70b3bad5b2a01f39 1 parent e284719
Горлов Максим Sheridan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/zimbra/zimbra-mailboxsizes
4 plugins/zimbra/zimbra-mailboxsizes
View
@@ -59,9 +59,9 @@ if [ "$1" = "config" ]; then
echo 'graph_scale yes'
echo 'graph_vlabel Mailboxsize'
echo 'graph_category Zimbra'
- /opt/zimbra/bin/zmprov gqu $(hostname)|awk '$3>102400 {sub (/@.*/, "",$1); print $1".label "$1}'
+ /opt/zimbra/bin/zmprov gqu $(hostname)|awk '$3>102400 {sub (/@.*/, "",$1); sub(/\./, "_" ,$1); print $1".label "$1}'
exit 0
fi
-/opt/zimbra/bin/zmprov gqu $(hostname)|awk '$3>102400 {sub (/@.*/, "",$1); print $1".value "$3}'
+/opt/zimbra/bin/zmprov gqu $(hostname)|awk '$3>102400 {sub (/@.*/, "", $1); sub(/\./, "_" ,$1); print $1".value "$3}'
Please sign in to comment.
Something went wrong with that request. Please try again.