3 # Plugin to monitor the number of IPs in special pools
8 # autoconf (optional - used by munin-config)
11 if [ "$1" = "config" ]; then
13 echo 'graph_title Restricted IPs'
14 echo 'graph_vlabel number of IPs'
15 echo 'graph_category nominatim'
16 echo 'bulk.label bulk'
18 echo 'bulk.type GAUGE'
19 echo 'block.label blocked'
20 echo 'block.draw STACK'
21 echo 'block.type GAUGE'
25 BASEDIR="$(dirname "$(readlink -f "$0")")"
27 cut -f 2 -d ' ' $BASEDIR/../settings/ip_blocks.map | uniq -c | sed 's:[[:space:]]*\([0-9]\+\) \(.*\):\2.value \1:'