lade till en egen graf för white-listade poster i milter greylist. Eftersom det är så pass stor skillnad i volym syns de inte annars
This commit is contained in:
@@ -19,7 +19,7 @@ fi
|
|||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
|
|
||||||
echo 'graph_title Milter-greylist'
|
echo 'graph_title Milter-greylist greylisted'
|
||||||
echo 'graph_args -l 0 --base 1000'
|
echo 'graph_args -l 0 --base 1000'
|
||||||
echo 'graph_vlabel Greylisted'
|
echo 'graph_vlabel Greylisted'
|
||||||
echo 'graph_category Mail'
|
echo 'graph_category Mail'
|
||||||
|
|||||||
37
milter_greylist_whitelisted
Executable file
37
milter_greylist_whitelisted
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Plugin to check /var/run/milter-greylist/greylist.db status
|
||||||
|
#
|
||||||
|
# Parameters:
|
||||||
|
#
|
||||||
|
# config (required)
|
||||||
|
# autoconf (optional - only used by munin-config)
|
||||||
|
#
|
||||||
|
#%# family=auto
|
||||||
|
#%# capabilities=autoconf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$1" = "autoconf" ]; then
|
||||||
|
echo yes
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "config" ]; then
|
||||||
|
|
||||||
|
echo 'graph_title Milter-greylist Whitelisted'
|
||||||
|
echo 'graph_args -l 0 --base 1000'
|
||||||
|
echo 'graph_vlabel Whitelisted'
|
||||||
|
echo 'graph_category Mail'
|
||||||
|
echo 'graph_period second'
|
||||||
|
echo 'graph_info This graph shows the current number of whitelisted senders.'
|
||||||
|
echo 'white.label Whitelisted'
|
||||||
|
echo 'white.max 500'
|
||||||
|
echo 'white.min 0'
|
||||||
|
echo 'white.info The number of whitelisted hosts.'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -n "white.value "
|
||||||
|
grep "\# Summary:" /var/run/milter-greylist/greylist.db |awk '{ print $7 }'
|
||||||
|
|
||||||
Reference in New Issue
Block a user