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_args -l 0'
15 echo 'graph_vlabel number of IPs'
16 echo 'graph_category nominatim'
17 echo 'bulk.label bulk'
19 echo 'bulk.type GAUGE'
20 echo 'block.label blocked'
21 echo 'block.draw STACK'
22 echo 'block.type GAUGE'
26 BASEDIR="$(dirname "$(readlink -f "$0")")"
28 cut -f 2 -d ' ' $BASEDIR/../settings/ip_blocks.map | uniq -c | sed 's:[[:space:]]*\([0-9]\+\) \(.*\):\2.value \1:'