Updating to Debian Etch broke Amavis-Stats
Updating to Debian Etch broke Amavis-Stats:
Amavis Detection Statistics
Daily Graphs
amavis-stats::error: rrd_graph(): 1
amavis-stats::error: rrd_graph(): 1
Weekly Graphs
amavis-stats::error: rrd_graph(): 1
amavis-stats::error: rrd_graph(): 1
Monthly Graphs
amavis-stats::error: rrd_graph(): 1
amavis-stats::error: rrd_graph(): 1
Yearly Graphs
amavis-stats::error: rrd_graph(): 1
amavis-stats::error: rrd_graph(): 1
I searched Google for a solution but every other post on the subject suggested downgrading rrdtool. This is not an appropriate fix. I debugged the actual amavis-stats script and here is my fix. It involves commenting out some lines in /usr/share/amavis-stats/amavis-stats.php:
Line 650:
// $opts[] = "COMMENT:amavis-stats v$asVersion ";
// $opts[] = "COMMENT:$enddate \\r";
Line 771:
// $opts[] = "COMMENT:amavis-stats v$asVersion ";
// $opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r";
This entry was posted on Thursday, May 31st, 2007 at 2:59 pm and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


Beau Brown November 22nd, 2007 at 6:24 am
hey brother.
its been a very long time, i wonder if you remember me. i was your bro back in the days when we used to hang out with gavin and chris. write back to me and let me know how your doing. i also want to know if your have been in touch with those two. its been about 8 years since ive lived in utah. it would be good to hear from u all
later beau