Cricket and NetFlow create RRD files. Each has some basic utilities for drawing data found within the files. Drraw provides advanced capabilities for creating graphs, templates, and dashboards.
Installation
Download the utility and expand the source:
wget http://web.taranis.org/drraw/dist/drraw-2.1.3.tgz
tar -zxvf drraw-2.1.3.tgz
Create an icon directory, copy the script and icon files:
cd drraw-2.1.3
mkdir /var/www/icons
cp icons/* /var/www/icons
cp drraw* /usr/lib/cgi-bin/
chmod 755 /usr/lib/cgi-bin/drraw.cgi
Create some directories:
mkdir /var/cache/apache2/drraw
mkdir /var/cache/apache2/drraw/saved
mkdir /var/cache/apache2/drraw/tmp
chown -R www-data.www-data /var/cache/apache2/drraw
mkdir /var/log/drraw
touch /var/log/drraw/error.log
chown -R www-data.www-data /var/log/drraw
Update /usr/lib/cgi-bin/drraw.conf with the following:
%datadirs = (
# '/here/are/some/files' => '[Label1] ',
'/var/lib/cricket' => '[Cricket] ',
);
$saved_dir = '/var/cache/apache2/drraw/saved';
$tmp_dir = '/var/cache/apache2/drraw/tmp';
$ERRLOG = '/var/log/drraw/errors.log';
Change the first line of /usr/lib/cgi-bin/drraw.cgi to:
#! /usr/bin/perl -T
The program can be started with:
http://localhost/cgi-bin/drraw.cgi