3 # Plugin to monitor the number of IPs being slowed down by Squid delay pools
 
   8 #       autoconf (optional - used by munin-config)
 
  11 if [ "$1" = "config" ]; then
 
  13         echo 'graph_title IPs being delayed'
 
  14         echo 'graph_args --base 1000 -l 0'
 
  15         echo 'graph_vlabel IPs'
 
  16         echo 'graph_category squid'
 
  17         echo 'squid_delay1.label IPs'
 
  18         echo 'squid_delay1.min 0'
 
  19         echo 'squid_delay1.draw AREA'
 
  24 req0=`squidclient -h 127.0.0.1 mgr:delay|fgrep Current|egrep --count '[0-9]{1,3}:-?[0-9]{1,3} '`
 
  26 echo "squid_delay1.value " `expr 0 + $req0`