Dear All,
How can I get real-time reports from squid? I'm using squid3 on Ubuntu Server 8.04
~~~~~~~~~~~~~~ Sameer Shinde. M:- +91 98204 61580 Millions saw the apple fall, but Newton was the one who asked why.
On Wed, Apr 1, 2009 at 8:28 PM, sameer shinde s9sameer@gmail.com wrote:
Dear All,
How can I get real-time reports from squid? I'm using squid3 on Ubuntu Server 8.04
I'm using sarg for pulling out reports from squid. Which is working very fine for me. But the problem is it pulls out the reports only when you run the sarg command. which I want to schedule tobe run for every 5 min time. Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
~~~~~~~~~~~~~~ Sameer Shinde. M:- +91 98204 61580 Millions saw the apple fall, but Newton was the one who asked why.
On Thu, Apr 2, 2009 at 4:33 PM, sameer shinde s9sameer@gmail.com wrote:
I'm using sarg for pulling out reports from squid. Which is working very fine for me. But the problem is it pulls out the reports only when you run the sarg command. which I want to schedule tobe run for every 5 min time. Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
man crontab
Sameer Shinde.
With regards,
Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
with any user you can type in "crontab -e" . It will open a window in which you can type in as follows : 5 * * * * /usr/bin/sarg(whatever the command you type on command prompt) and save this file. It will start executing the command after each 5 minutes.
On Wed, Apr 8, 2009 at 11:49 AM, Jagdish Chhailkar cjagdish69@gmail.com wrote:
Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
with any user you can type in "crontab -e" . It will open a window in which you can type in as follows : 5 * * * * /usr/bin/sarg(whatever the command you type on command prompt) and save this file. It will start executing the command after each 5 minutes.
it should be
*/5 * * * * for every 5 minutes
2009/4/8 Abhishek Amberkar [अभिषेक] abhishek.amberkar@gmail.com:
On Wed, Apr 8, 2009 at 11:49 AM, Jagdish Chhailkar cjagdish69@gmail.com wrote:
Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
with any user you can type in "crontab -e" . It will open a window in which you can type in as follows : 5 * * * * /usr/bin/sarg(whatever the command you type on command prompt) and save this file. It will start executing the command after each 5 minutes.
it should be
*/5 * * * * for every 5 minutes
I'll do this for reporting of every 5 mins. But I still have one doubt. I've sarg in my cron.daily / weekly / monthly folder -rwxr-xr-x 1 root root 84 2008-03-23 12:46 sarg
The containts of the sarg file are as below,
#!/bin/sh
if [ -x /usr/sbin/sarg-reports ]; then /usr/sbin/sarg-reports daily fi
This tells me that the sarg should run on daily/weekly/monthly basis, but then why is it not working? These entries were auto generated when I installed the sarg and I've not done any changes in it, yet. I'm on Ubuntu 8.04
~~~~~~~~~~~~~~ Sameer Shinde. M:- +91 98204 61580 Millions saw the apple fall, but Newton was the one who asked why.
On Tue, Apr 14, 2009 at 5:32 PM, sameer shinde s9sameer@gmail.com wrote:
2009/4/8 Abhishek Amberkar [अभिषेक] abhishek.amberkar@gmail.com:
On Wed, Apr 8, 2009 at 11:49 AM, Jagdish Chhailkar cjagdish69@gmail.com wrote:
Can someone let me know, how can we do this? I also know that I need to do a cron job for that, but how?
with any user you can type in "crontab -e" . It will open a window in which you can type in as follows : 5 * * * * /usr/bin/sarg(whatever the command you type on command prompt) and save this file. It will start executing the command after each 5 minutes.
it should be
*/5 * * * * for every 5 minutes
I'll do this for reporting of every 5 mins. But I still have one doubt. I've sarg in my cron.daily / weekly / monthly folder -rwxr-xr-x 1 root root 84 2008-03-23 12:46 sarg
The containts of the sarg file are as below,
#!/bin/sh
if [ -x /usr/sbin/sarg-reports ]; then /usr/sbin/sarg-reports daily fi
This tells me that the sarg should run on daily/weekly/monthly basis, but then why is it not working? These entries were auto generated when I installed the sarg and I've not done any changes in it, yet. I'm on Ubuntu 8.04
Anyone can tell me this? This is very confusing for me
~~~~~~~~~~~~~~ Sameer Shinde. M:- +91 98204 61580 Millions saw the apple fall, but Newton was the one who asked why.