Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 01 December 2024, 02:55:27 am

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Development
| |-+  Contribute Your Customisations & Modifications
| | |-+  LightSquid on Endian FW
0 Members and 4 Guests are viewing this topic. « previous next »
Pages: 1 [2] 3 Go Down Print
Author Topic: LightSquid on Endian FW  (Read 201427 times)
nmatese
Full Member
***
Offline Offline

Posts: 27


« Reply #15 on: Friday 12 February 2010, 03:41:49 am »

You will notice that the IP listing is a duplicate of all users who are logged onto that server.  So the user1 + user2 = IP traffic if that makes sense.  I am trying to get Squint working on my server.  Squint gives more in depth reports daily/weekly/monthly.  Only thing I am struggling with is getting the cron job to work properly.
Logged
jimmyzshack
Full Member
***
Offline Offline

Posts: 17


« Reply #16 on: Friday 12 February 2010, 04:34:03 am »

mine isn't running either using

#!/bin/sh
/home/httpd/html/lsquid/lightparser.pl &>/dev/null
exit 0

does it need to be ran as root?
Logged
jimmyzshack
Full Member
***
Offline Offline

Posts: 17


« Reply #17 on: Friday 12 February 2010, 05:52:35 am »

You will notice that the IP listing is a duplicate of all users who are logged onto that server.  So the user1 + user2 = IP traffic if that makes sense.  I am trying to get Squint working on my server.  Squint gives more in depth reports daily/weekly/monthly.  Only thing I am struggling with is getting the cron job to work properly.

i used this

#!/bin/sh
cd /home/httpd/html/lsquid
./lightparser.pl
exit 0

and put it in the cron.cyclic folder and ran chmod 700 "filename" and it works now
Logged
nmatese
Full Member
***
Offline Offline

Posts: 27


« Reply #18 on: Friday 12 February 2010, 05:55:37 am »

I am finding out that any Cron that i add to the crontab file, none of them run.  Anyone have any suggestions on how I could get this script to run nightly at a specific time?
Logged
jimmyzshack
Full Member
***
Offline Offline

Posts: 17


« Reply #19 on: Friday 12 February 2010, 06:24:18 am »

I am finding out that any Cron that i add to the crontab file, none of them run.  Anyone have any suggestions on how I could get this script to run nightly at a specific time?

I didn't add anything to the crontab file, looks to me that it is setup to tell the folders( cron.hour, cron.daily etc) when to run. From what i can tell is that you put the job in the folder that runs on the time table you want.

to test i put this in a text file with no extension

#!/bin/sh
cd /home/httpd/html/lsquid
./lightparser.pl
exit 0

then ran from terminal chmod 700 "filename" (this look important to do bc it didnt work till i did it) and put it in the /etc/cron.minutely to test where i didn't have to wait an hour.

on the skip user is there a way to skip all ip address are do i have to add each address from all the subnets?
Logged
nmatese
Full Member
***
Offline Offline

Posts: 27


« Reply #20 on: Friday 12 February 2010, 06:25:24 am »

I figured out that fcron, which is the daemon for crontab only reloads itself with a reboot.  Therefore anything in crontab is not recognized yet.
Logged
pwizard
Full Member
***
Offline Offline

Posts: 29


« Reply #21 on: Tuesday 16 March 2010, 12:58:07 pm »

Very Very nice program!!!!!
Easy to install, easy to configure, and easy to get stats and graphs.
That's what exactly I was looking for months!!!!!
  Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy

Just a tip, to remove 127.0.0.1 logs, you just need to configure a second cfg file, called skipuser.cfg. Just write these IPs to remove local logs:
127.0.0.1
localhost
localhost.localhost


There is a thing I still can't get to work. It's supposed that the logger has the ability to parse IP 2 names from DHCP file, although I configured $ip2name as 'dhcp', it doesn't work for me.

I'm working hard with old logs, to have a nice stat site. 700Mb of compressed squid logs, millions and millions of http access  Cool

About cron jobs, a side note. install.txt file from lightsquid package says:
10. Setup crontab to run lightparser once per hour

      crontab -e
      This example will execute parser at 55 minutes after every hour:

      */55 * * * * /var/www/htdocs/lightsquid/lightparser.pl today
     
      if you have small log and fast machine, you may run lightparser with smaller delay
      !!!warning!!! not set interval less 10 min !!!!!


command crontab not available on endian.
I create script at /etc/cron.hourly for generate report every hour.
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #22 on: Tuesday 16 March 2010, 05:11:09 pm »

command crontab not available on endian.
I create script at /etc/cron.hourly for generate report every hour.

Well, I was refering to the 1 hour limit on readme, but thanks for pointing out the crontab
Logged
pwizard
Full Member
***
Offline Offline

Posts: 29


« Reply #23 on: Tuesday 16 March 2010, 05:35:38 pm »

How to show detail in each user ?
Logged
pwizard
Full Member
***
Offline Offline

Posts: 29


« Reply #24 on: Tuesday 16 March 2010, 05:37:06 pm »

Why not show detail ?
Logged
turitopa
Full Member
***
Offline Offline

Posts: 30


« Reply #25 on: Tuesday 29 June 2010, 11:01:01 am »

hi people,

is my stmpmail details logged in here?

I would like to see how much bandwidth my MailServer is using...
Logged

Running XenServr 5.5 on a Dell Poweredge 2950 III rackserver.
vm Endian 2.3
vm sbs 2008
jayanthan
Jr. Member
*
Offline Offline

Posts: 6


« Reply #26 on: Wednesday 09 November 2011, 03:44:27 pm »

Super explanation and very easy to install and to get work.

FYI,
i put that file in "/etc/cron.cyclic", it generates the report at every 5 minutes.

After that i moved that file to cron.hourly. So, that 1ly it every hourly...

One more thing,
If an ip is Bypassed. it can't generates report for that IP.
Logged
gsr1985
Jr. Member
*
Offline Offline

Posts: 1


« Reply #27 on: Monday 12 December 2011, 07:06:03 pm »

Hai ,
               I receive an error message  as below when compiling


 bash ./lightparser.pl
./lightparser.pl: line 23: syntax error near unexpected token `('
./lightparser.pl: line 23: `sub MakeReport();'


Can you please help me in rectifying this error
Logged
mgr9500
Jr. Member
*
Offline Offline

Posts: 2


« Reply #28 on: Thursday 09 February 2012, 07:00:04 pm »

I did all steps(first post) but when run:
Code:
./check-setup.pl 
WARNING
Code:
LightSquid Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL
 
WARNING: Log format Look like CUSTOM log, Lightsquid can't parse this format! Please check  documentation !
Invalid access.log format or can't check format type ...
Logged
alertamaxima
Jr. Member
*
Offline Offline

Posts: 2


« Reply #29 on: Friday 23 November 2012, 10:44:17 am »

hello thank you very much for the article
I have this error on the website
Access to 'home/httpd/html/lsquid/report' folder   NO !!!!!!!!!!!!

by console this

root@endian:/home/httpd/html/lsquid # ./lightparser.pl
can't create lock file `home/httpd/html/lsquid/report/lockfile`
 Huh
Logged
Pages: 1 [2] 3 Go Up Print 
« previous next »
Jump to:  

Page created in 0.211 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com