mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Adjust categories for some mail-related plugins
This commit is contained in:
parent
01c2f1ca2d
commit
7c3074b5f0
@ -116,7 +116,7 @@ fi
|
|||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title IMAP bandwidth'
|
echo 'graph_title IMAP bandwidth'
|
||||||
echo 'graph_vlabel to (+) / from (-) server [bit/s]'
|
echo 'graph_vlabel to (+) / from (-) server [bit/s]'
|
||||||
echo 'graph_category network'
|
echo 'graph_category mail'
|
||||||
for item in $SERVERS; do
|
for item in $SERVERS; do
|
||||||
key="$(echo "$item" | cut -f 1 -d =)"
|
key="$(echo "$item" | cut -f 1 -d =)"
|
||||||
clean_name="$(clean_fieldname "$key")"
|
clean_name="$(clean_fieldname "$key")"
|
||||||
|
@ -31,7 +31,7 @@ if [ "$1" = "config" ]; then
|
|||||||
graph_title Open mail server connections
|
graph_title Open mail server connections
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel connections per second
|
graph_vlabel connections per second
|
||||||
graph_category Mail
|
graph_category mail
|
||||||
EOT
|
EOT
|
||||||
echo "$PORTS" | while read port field label; do
|
echo "$PORTS" | while read port field label; do
|
||||||
echo "${field}.label $label"
|
echo "${field}.label $label"
|
||||||
|
@ -28,7 +28,7 @@ fi
|
|||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
|
|
||||||
echo 'graph_title Postfwd'
|
echo 'graph_title Postfwd'
|
||||||
echo 'graph_category fw'
|
echo 'graph_category spamfilter'
|
||||||
echo 'graph_args --base 1000 -l 0'
|
echo 'graph_args --base 1000 -l 0'
|
||||||
echo 'graph_vlabel Postfwd statistics'
|
echo 'graph_vlabel Postfwd statistics'
|
||||||
echo 'spamhaus.label Listed on Spamhaus.org'
|
echo 'spamhaus.label Listed on Spamhaus.org'
|
||||||
|
@ -35,7 +35,7 @@ sub config {
|
|||||||
|
|
||||||
print "graph_title Destination folders for Postfix\n",
|
print "graph_title Destination folders for Postfix\n",
|
||||||
"graph_vlabel Received mails\n",
|
"graph_vlabel Received mails\n",
|
||||||
"graph_category Mail\n",
|
"graph_category mail\n",
|
||||||
"graph_info Gives you the total mails stored by Postfix by folder\n";
|
"graph_info Gives you the total mails stored by Postfix by folder\n";
|
||||||
print "$_.label $_\n" foreach sort keys %{$state->{folders}};
|
print "$_.label $_\n" foreach sort keys %{$state->{folders}};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user