From 9bcaf7f81a01fe80f633ac4363c33a8b8e0c9fc0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 10 Dec 2012 19:05:17 +0100 Subject: run daily visitors report --- TODO | 4 ++-- etc/cron.daily/visitors | 15 +++++++++++++++ update_jdn.sh | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 etc/cron.daily/visitors diff --git a/TODO b/TODO index 2220dee4..4164bf82 100644 --- a/TODO +++ b/TODO @@ -15,8 +15,8 @@ See link:http://jenkins.debian.net/userContent/about.html["about jenkins.debian. == General ToDo * create general and job specific housekeeping jobs -* keep git+svn urls, and use commit hooks. also better for test setups of this install :) -* run calamaris, visitors etc +* keep git+svn urls, and use commit hooks. also better for test setups of this setup as well as overall stability. +* run calamaris properly * proper git repo url, outside users/holger ** same for /srv/jenkins.debian.net-scm-sync.git * fully automate backup and backup /var/lib/jenkins/jobs /var/lib/munin /var/log /root/ too diff --git a/etc/cron.daily/visitors b/etc/cron.daily/visitors new file mode 100755 index 00000000..3fffeecb --- /dev/null +++ b/etc/cron.daily/visitors @@ -0,0 +1,15 @@ +#!/bin/sh + +# Copyright 2012 Holger Levsen +# released under the GPLv=2 + +LOGS=$(mktemp) +DOT=$(mktemp) +# FIXME: provide monthly stats and don't run this daily +zcat /var/log/apache2/access.log* | grep -v 127.0.0.1 | sort | ip2host > $LOGS + +visitors --debug -AKMY -m 30 $LOGS > /var/www/visitors-report.html +#visitors --debug -VT -m 30 --prefix http://jenkins.debian.net $LOGS > $DOT +# dot -Tpng -o/var/lib/www/visitors-report-graph.png $DOT + +rm $LOGS $DOT diff --git a/update_jdn.sh b/update_jdn.sh index df3bb596..3d48e5c3 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -23,7 +23,7 @@ done # install packages we need # (more or less grouped into more-then-nice-to-have, needed-while-things-are-new, needed) # -sudo apt-get install vim screen less etckeeper moreutils curl mtr-tiny dstat devscripts bash-completion shorewall shorewall6 cron-apt apt-listchanges munin calamaris visitors procmail libjson-rpc-perl libfile-touch-perl zutils \ +sudo apt-get install vim screen less etckeeper moreutils curl mtr-tiny dstat devscripts bash-completion shorewall shorewall6 cron-apt apt-listchanges munin calamaris visitors procmail libjson-rpc-perl libfile-touch-perl zutils ip2host \ build-essential python-setuptools \ debootstrap sudo figlet graphviz apache2 python-yaml python-pip mr subversion subversion-tools vnstat webcheck poxml qemu vncsnapshot imagemagick ffmpeg2theora python-twisted python-imaging explain "Packages installed." -- cgit v1.2.3-70-g09d2