Skip to content

Commit

Permalink
Update plugins/zimbra/zimbra-mailboxsizes
Browse files Browse the repository at this point in the history
Adding support for dots in mailboxses names ( mail.box@example.net )
  • Loading branch information
Горлов Максим committed Nov 27, 2012
1 parent e284719 commit dfa9d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/zimbra/zimbra-mailboxsizes
Expand Up @@ -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}'

0 comments on commit dfa9d73

Please sign in to comment.