LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2005, 01:54 PM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Rep: Reputation: 31
squid + sarg


I am using sarg to create some statistics for proxy's usage.

The problem i have is that all dates appear twice
http://ampranti.homeip.net/problem.gif

I am running sarg every 3h from crontab:

* */3 * * * /usr/bin/sarg -no /var/www/squid/ >/dev/null 2>&1

Any idea why happen this?
 
Old 03-17-2005, 09:42 AM   #2
awillard69
LQ Newbie
 
Registered: Aug 2004
Location: Chicagoland
Distribution: Fedora
Posts: 13

Rep: Reputation: 0
If you are running every three hours, is it possible that your script is firing just before midnight, and again just after midnight? Therefore getting an overlap in the days due to the activity spanning midnight.
 
Old 03-18-2005, 02:08 AM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
I just found that
* */3 * * * /usr/bin/sarg -no /var/www/squid/ >/dev/null 2>&1

run sarg every 3rd hour all minutes (3:00 , 3:01 etc..)

I changed to
0 */3 * * * /usr/bin/sarg -no /var/www/squid/ >/dev/null 2>&1
 
Old 03-22-2005, 04:34 AM   #4
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
Still same problem

Anyone facing the same problem?
 
Old 06-22-2005, 06:29 AM   #5
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
logrotate was creating the problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SARG exclude users myheart Linux - Security 3 06-07-2010 02:46 AM
SARG -Squid Reporting Software sf49football Linux - Software 3 12-03-2008 02:18 PM
Need help in SARG depam Linux - Software 1 10-14-2005 09:06 PM
Restricting Download based on total download using Squid,SARG& Webmin jomy Linux - Networking 0 04-27-2005 06:04 AM
sarg thiyagu4u Linux - Networking 0 09-13-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration