#!/bin/sh ################################################################# # # Parameters understood: # # config (required) # autoconf (optional - used by munin-config) # ################################################################# # # Requirements # - web server with cband module enabled # - installed wget # ################################################################# # # Configuration section # # URL to the script to check eaccelerator status URL="http://localhost/cband-status?refresh=15&unit=K"; # WGET=`which wget`; WGET_FLAGS="-Yoff"; # refer to wget manual, you may set extra parameters like disable proxy # # ################################################################# # # Changelog # # Revision 0.1 Tue 09 May 2009 02:16:02 PM CET # - initial release, # ################################################################# ################################################################# ################################################################# # Settigs required for autoconf #%# family=manual #%# capabilities=autoconf if [ "$1" = "autoconf" ]; then echo no exit 0 fi if [ "$1" = "config" ]; then echo 'graph_title CBandwith Google Usage ' echo 'graph_args -l 0' echo 'graph_category apache' echo 'graph_info This graph shows per virtual host traffic from the cband module.' echo 'graph_vlabel Kbytes per ${graph_period}' wget -q $WGET_FLAGS "$URL" -O - | grep -A 3 http |grep "^