
apt-get install python-dateutil

configure my_config.bash, can use values from pactime, easy way to start:
egrep "^my"  ../pactime/my_config.py ../pactime/server_config.py | cut -f 2 -d: | sed 's/my/#my/' >> my_config.bash
vi my_config.bash

need my_config.py and server_config.py for hourly usage stats, so copy those from pactime
cp  ../pactime/my_config.py ../pactime/server_config.py .

vi custom/lists/all.list
#or leave all.list blank to run query on all machines in database
vi custom/lists/guest_passes.list

#auto list generation based on cmon pages
echo "30 4 1 * * root  /var/www/groovix/stats/generate_lists.bash" >> /etc/crontab

#for running stats on server on the first of the month
echo "0 5 1 * * root  /var/www/groovix/stats/run_monthly_report.bash" >> /etc/crontab

#if this is a normal machine that is not on all the time, run stats first few days of the month in case of holidays, sundays, etc. 
#run at noon in case of late opening
echo "0 12 1-5 * * root /var/www/groovix/statistics/run_monthly_report.bash --overwrite >> /etc/crontab

 
