Amavis-Stats fix for rrd_graph(): 127 error

The fix for the amavis-stats::error: rrd_graph(): 127 with Amavis-Stats has to do with the path to rrdtool. I’m sure that there is a better way, but my quick and dirty way was to hard code the path for rrdtool into the amavis-stats.php file. I did this on line 82 of amavis-stats.php

I changed it from:
$cmd = "rrdtool graph $img '". implode("' \\\n'",$opts) . "'" .

to:
$cmd = "/usr/local/rrdtool/bin/rrdtool graph $img '". implode("' \\\n'",$opts) . "'" .

Advertisements
Previous Post
Leave a comment

1 Comment

  1. Many thanks, very useful. I had the same problem and the solution was handy as well.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: