Koozali.org: home of the SME Server

[Announce]: Dansguardian-stats - Statistics overview of web filter

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #15 on: May 07, 2009, 02:40:40 PM »
Thanks Knuddi,
Now I wanted to use the unofficial ClamAV sigs, but not include the Sane Security, is it possible to just use the others?

Edit: Nevermind, found the instructions on the configuration file.
Thanks,
« Last Edit: May 07, 2009, 04:14:43 PM by Franco (a.k.a. stuntshell) »

Offline bas

  • **
  • 31
  • +0/-0
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #16 on: May 07, 2009, 11:28:43 PM »
Hello Jesper,

Same thing here, logfileformat set to 4 access.log shows *scanned*. But not on every line.

------------------
2009.5.7 23:19:25       -       192.168.10.250  http://forums.contribs.org/Themes/default/images/expand.gif             GET     162     0               1      200      image/gif                       -
2009.5.7 23:19:25       -       192.168.10.250  http://forums.contribs.org/Themes/default/images/bbc/resize-handle.gif          GET     827     0              1200     image/gif                       -
2009.5.7 23:19:25       -       192.168.10.250  http://forums.contribs.org/Themes/default/images/bbc/bbc_hoverbg.gif            GET     334     0              1200     image/gif                       -
2009.5.7 23:19:25       -       192.168.10.250  http://forums.contribs.org/index.php/topic,43922.0/prev_next,next.html          GET     0       0              1403     text/html                       -
2009.5.7 23:24:57       -       192.168.10.250  http://mirror2.mirrors.tds.net/pub/mozilla.org/firefox/releases/3.0.10/update/win32/nl/firefox-3.0.10.complete.mar      *SCANNED*       GET     300000  0               1       206     application/octet-stream                        -
------------------

The stats-webpage show two empty boxes "NO WEBPAGES SCANNED ..."
running the script dansguardian-stats.pl also shows nothing is scanned:
---Overall result ----------------
Start time    = Thu 7 May 2009, 22:14:46
End time      = Thu 7 May 2009, 23:14:46
Seen URLs     = 0 (0 Bytes)
Scanned URLs  = 0 (0 Bytes)
Infected      = 0 (0 Bytes)
URL mod       = 0
Content mod   = 0
Denied        = 0 (0 Bytes)

Is the script reading the right access.log? Or is there another .conf where i configure what to scan?

Bas
......

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #17 on: May 08, 2009, 02:18:43 PM »
The access log that I scan is /var/log/dansguardian/access.log and the program will complain if not present.

You are absolutely sure that you have restarted dansguardian after you changed the logfileformat to 4? Yes yes, I have to ask  :???:

What is the output of:
cat /etc/dansguardian/dansguardian.conf | grep logfileformat

If yes, then please email me the log file so I can try to determine why is doesn't parse correctly.

Offline bas

  • **
  • 31
  • +0/-0
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #18 on: May 08, 2009, 08:49:31 PM »
Hello Jesper,

The result of the cat ..
[root@proxy ~]# cat /etc/dansguardian/dansguardian.conf | grep logfileformat
logfileformat = 4

And yes i did restart the dansguardian service in fact i restarted the whole server.
Now i'm gonna lookup your email address to mail the access.log

Bas

......

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #19 on: May 09, 2009, 06:56:17 PM »
Just for the rest to know the resolution. The log file had both old and new (format 4) lines inside and the parser bailed out when it didn't see the right format in the start.

Therefore, until I release a new version I suggest you clear out the log (/var/log/dansguardian/access.log) before you restart dansguardian.
Code: [Select]
/etc/init.d/dansguardian stop
rm /var/log/dansguardian/access.log
/etc/init.d/dansguardian start


Wiki also updated to reflect this..
« Last Edit: May 09, 2009, 07:00:09 PM by Knuddi »

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #20 on: May 20, 2009, 09:32:54 PM »
Just a small notice for those who followed this thread. I have released an updated version that fixes:

1) mixed log files with new (logfileformat 4) and old format causes nothing to be shown (graphs empty)
2) Some categories were represented as number rather than a textual description

Install instruction on wiki: http://wiki.contribs.org/Dansguardian-stats


Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #21 on: May 21, 2009, 02:13:30 PM »
@knuddi

Thanks for your contrib - looks great!
Can you contrib be adapted to work with dungog-dansguardian?

Cheers
SME Server is a fantastic product - thank you!

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #22 on: May 21, 2009, 05:43:05 PM »
I wouldn't know - I do not have access to this contrib. The only requirement would be the log file format which I do not know anything about? Can you enlighten me?

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #23 on: May 21, 2009, 08:35:50 PM »
After a quick look at the wiki on Dungog it seems that they can co-operate just fine. In the "Global Settings" section you need to change the "format of Logfile" to something with "tab separated".


Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: [Announce]: Dansguardian-stats - Statistics overview of web filter
« Reply #24 on: May 22, 2009, 08:36:12 AM »
That did it:
Quote
Server Panel > Dansguardian > Modify global settings > Format of logfile > Tab Delimited > Save and Restart

Thanks, Knuddi
SME Server is a fantastic product - thank you!