Re: [squid-users] Getting Squid-Graph to work Properly

From: Muthukumar <kmuthu_gct@dont-contact.us>
Date: Tue, 24 Feb 2004 09:27:22 +0530


> so are you saying that I should setup a cron job to update this each second?

Yes.Use the crontab to get the results

> What are you saying, I didn't quite understand you? Are you running squid-graph, and if so are you doing it this way?
>

crontab -e
*/5 * * * * <squid-graph exceution >

(squid-graph exceution <=> /usr/local/squid-graph/bin/squid-graph --output-dir <output-directory> --access_log <access-log-location>)
It is used to get the squid-graph results every 5 minutes.

If you want to rotate the squid.logs daily,
make a file as /etc/cron.daily/squid.rotate
if [[ -x <squid-bin-location> -a -f <squid-pid-file-locaotion> ]]
then
    squid-bin-location -k rotate
done

Regards,
Muthukumar.

Received on Mon Feb 23 2004 - 20:57:33 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:03 MST