Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Tormyst
Last active October 18, 2017 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tormyst/03f9b15156de86b9e5ee524e7f6f8c6c to your computer and use it in GitHub Desktop.
Save Tormyst/03f9b15156de86b9e5ee524e7f6f8c6c to your computer and use it in GitHub Desktop.
Fix that worked for me to install ragraph

install packages

sudo apt-get install librrds-perl libcgi-pm-perl

sudo edit the file located at which ragraph

Make these changes near the top of the file:

...
 # Used modules
 use RRDs;
 use POSIX;
+use File::Temp;

 # Global variables
-$tmpfile=tmpnam();
+my ($tmp_fh, $tmpfile) = File::Temp::tempfile();
+close $tmp_fh;
 my $RRD     = $tmpfile.".rrd";
...

make this change around line 1436

-	 "--interlace", "--imgformat","PNG",
+        "--imgformat","PNG",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment