Disabling Console Logging
By default, Squid Graph writes a log to the console while it is running to
remind the user of its status and also to aid debugging. To turn this off
temporarily you can specify the --no-console-log
option at
the command line.
$ ./squid-graph --no-console-log --output-dir=/var/ww...
However, you may wish to disable it permanently. To do so, you will need to edit the squid-graph program file and look for this line:
my $CONSOLELOG = 1;Disable it by changing its value to 0.
my $CONSOLELOG = 0;
Changing Report Colors
You can change the default output colors by modifying the program. Be very careful when doing this, as it can be very messy.
To change the colors, load your favourite text editor and open the squid-graph program.
$ vi squid-graphThen, look for the following segment of code:
# Define graph colours [RRR,GGG,BBB] $color{'bg'} = ['F5','F5','F5']; # graph background color $color{'fg'} = ['00','00','00']; # graph foreground color $color{'gr'} = ['00','00','FF']; # graph total line color ...Edit each of the colour values. Bear in mind that they are in hexidecimal, not decimal.
Command Line Shortcuts
The long command line options are tedious to type. The following are aliases for the various command line options.
--output-dir -o --start -s --end -e --cumulative -c --no-console-log -n --no-transfer-duration -d --help -h
Use them like you would use the normal options, for example: -
$ ./squid-graph -o=/var/www/html/reports -n -c < /usr/local/squid/access.logThis will set the output directory (-o option) to
/var/www/html/reports
, disable
console logging (-n option), and then enable cumulative curves (-c option).
![]() |
(c) 2001, SecurLogic <squid-graph@securlogic.com>
http://squid-graph.securlogic.com/ |