Updating to Debian Etch broke Amavis-Stats

May 31, 2007

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";

posted in Linux by Chris Carey

Follow comments via the RSS Feed | Leave a comment | Trackback URL

6 Comments to "Updating to Debian Etch broke Amavis-Stats"

  1. ragai wrote:

    Thanks for the workaround / Fix. I had the same error on fresh install of Debian Etch.

    I, however, did not comment out the two lines

    $opts[] = “COMMENT:amavis-stats v$asVersion “;

    and added the version number (1.2.15-0.3) in line 60 as it was left out.

  2. Beau Brown wrote:

    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

  3. Dietmar Zlabinger wrote:

    thank you. on my debian-etch installation there is an offset of some lines, but it worked. the comment from ragia did not fix the problem.

    dietmar

  4. FRLinux wrote:

    Thank you, that fixed my problem too :)

  5. czk wrote:

    Worked for me too! thx!

  6. Times Enemy wrote:

    Thank you for publishing this!
    This worked for me, then recently stopped working. When i check the /usr/share/amavis-stats/amavis-stats.php file, my edits remain. Any suggestion(s)?

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org