Updating to Debian Etch broke Amavis-Stats:
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:$enddate \\r";
Line 771:
// $opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r";
Leave a Reply