--- quegraph/queuegraph/queuegraph-rrd.sh.orig 2007-02-12 02:37:40.000000000 -0700
+++ quegraph/queuegraph/queuegraph-rrd.sh 2007-03-25 21:06:32.000000000 -0600
@@ -14,7 +14,7 @@
# change this to the location of rrdtool
RRDTOOL=/usr/bin/rrdtool
# change this to the location you want to store the rrd
-RRDFILE=/etc/postfix/mailqueues.rrd
+RRDFILE=/var/lib/queuegraph/mailqueues.rrd
if test ! -x $RRDTOOL ; then
echo "ERROR: $RRDTOOL does not exist or is not executable"
--- queuegraph/queuegraph.cgi.orig 2005-10-24 03:27:09.000000000 -0600
+++ queuegraph/queuegraph.cgi 2007-03-25 21:53:38.000000000 -0600
@@ -16,8 +16,8 @@
my $points_per_sample = 3;
my $ypoints = 160;
my $ypoints_err = 80;
-my $rrd = '/etc/postfix/mailqueues.rrd'; # path to where the RRD database is
-my $tmp_dir = '/tmp/queuegraph'; # temporary directory where to store the images
+my $rrd = '/var/lib/queuegraph/mailqueues.rrd'; # path to where the RRD database is
+my $tmp_dir = '/var/cache/queuegraph'; # temporary directory where to store the images
my $rrdtool_1_0 = ($RRDs::VERSION < 1.199908);
my @graphs = (
@@ -132,7 +132,6 @@
$uri =~ s/\/[^\/]+$//;
$uri =~ s/\//,/g;
$uri =~ s/\~/tilde,/g;
- mkdir $tmp_dir, 0777 unless -d $tmp_dir;
mkdir "$tmp_dir/$uri", 0777 unless -d "$tmp_dir/$uri";
my $file = "$tmp_dir/$uri$ENV{PATH_INFO}";
if($ENV{PATH_INFO} =~ /^\/queuegraph_(\d+)\.png$/) {
--- queuegraph/queuegraph/queuegraph-rrd.sh.orig 2007-02-12 02:37:40.000000000 -0700
+++ queuegraph/queuegraph/queuegraph-rrd.sh 2007-03-26 00:48:14.000000000 -0600
@@ -36,7 +36,7 @@
fi
#set -x
-qdir=`postconf -h queue_directory`
+qdir=`/usr/sbin/postconf -h queue_directory`
active=`find $qdir/incoming $qdir/active $qdir/maildrop -type f -print | wc -l | awk '{print $1}'`
deferred=`find $qdir/deferred -type f -print | wc -l | awk '{print $1}'`
#printf "active: %d\ndeferred: %d\n" $active $deferred