Koozali.org: home of the SME Server

sarg + dansguardian+ pam authentification not show reports

Offline dadoudidon

  • *
  • 84
  • +0/-0
sarg + dansguardian+ pam authentification not show reports
« on: August 07, 2007, 07:57:47 PM »
hello,

I just install Sarg following the wiki.

I use a sme 7.2 with dansguardian and pam authentification as it is proposed in the wiki.
sme is forced to use dansguardian as it is shown in the wiki

my proxy is proxy.myserver:8079 (cause 8080 is for tomcat)

so,

I did the install of Sarg, post upgrade and reboot.

set sarg to use dansguardian logs
Code: [Select]
/usr/bin/sarglog dansguardian

in the server-manager i access to the panel and i forced one shot report.
Code: [Select]
/usr/bin/sarg
It took a long time from 0 to 100%
but after nothing in the report.

Your seeing this because either no data was found
or you have just updated the sarg rpm.

You can force an update with /usr/bin/sarg

Note: this page may be cached, try refreshing this frame
right click, this frame, refresh


after a reboot of the server (in case of) still not reporting

don't know what to do!

Dave

Offline cool34000

  • *
  • 339
  • +0/-0
sarg + dansguardian+ pam authentification not show reports
« Reply #1 on: August 07, 2007, 08:25:14 PM »
Bonjour,

Configure SARG with this command:
Code: [Select]
# db configuration setprop sarg language French values abbreviation lastlog 365 logfile dansguardian
# /usr/bin/sarglog dansguardian


You have also to modify dansguardian logformat
Edit dansguardian.conf and change
Code: [Select]
logfileformat = 1to
Code: [Select]
logfileformat = 3
I hope this will work

Offline dadoudidon

  • *
  • 84
  • +0/-0
sarg + dansguardian+ pam authentification not show reports
« Reply #2 on: August 07, 2007, 08:34:15 PM »
Thanks Sylvain,
well done!
now I Have of my logs reported

Merci beaucoups
David

Offline tropicalview

  • ****
  • 196
  • +0/-0
    • http://www.tropicalview.net
sarg report not displayed.
« Reply #3 on: August 08, 2007, 11:07:13 PM »
Dear all,

i have a simular problem:
 
Code: [Select]

Squid Analysis Report Generator
 
Data not found
Your seeing this because either no data was found
or you have just updated the sarg rpm.
You can force an update with /etc/cron.daily/sarg

Note: this page may be cached, try refreshing this frame
right click, this frame, refresh
 



 Generated by sarg-2.2.1 May-19-2006  


I did the instructions above, and indeed the log changed from

Code: [Select]

"2007.8.7 16:44:12","-","192.168.1.202","http://www.sayersmedia.com/ads/adlog.php?bannerid=17&clientid=11&zoneid=8&source=&block=0&capping=0&cb=278b4c3c489a173e8177007218fdc35a","","GET","43","0","","1","200","image/gif","",""


to
Code: [Select]
1186605817.799    301 192.168.1.225 TCP_MISS/200 3846 GET http://tropicalview.net/gallery/albums/stationschip%20van%20nes/thumb_DSCF3025.JPG - DEFAULT_PARENT/127.0.0.1 image/jpeg


I renamed the old file so only new entry's are in the log right now.

I restarted dansguardian and also the whole server.

what can i try now???
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline tropicalview

  • ****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Solved
« Reply #4 on: August 09, 2007, 02:51:16 PM »
Dear all,

I found out the error myself.

It's just that you need at least one period of time logging, in the right format.

after installation and change of log format of dansguardian i deleted the old logs

Now one day later the daily report works.

I think next week the weekly will work and so on.


Thanks for the attention, and if you're installing it. be sure you have the right logging format and after changing be a little patient....
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)