Lightsquid stopped counting traffic

squid
webproxy
v7

(Valeriy) #1

Lightsquid stopped counting traffic. Displays data from 1 to 14 September 2017. No other data. (September 1, I launched Lightsquid). How to fix it?


(Michael Träumner) #2

Hi Valeriy,
only for explanation, what do you miss? The dates of today?

Please have a look at your squid logs

/var/log/squid/access.log

Did you change anything what has to do with squid logging?


(Valeriy) #3

no. nothing changed. just a month I was not, just got to the server and found it.
P.S.
I opened /var/log/squid/access.log and see the list of sites that were open


(Markus Neuberger) #4

Hello @Valeriy,

lightparser.pl is responsible for putting data to lightsquid stats so you may try to start lightparser.pl manually:

and check if it’s in cron:

[root@testserver etc]# grep -rnw ‘/etc’ -e ‘lightparser.pl
/etc/selinux/targeted/contexts/files/file_contexts:2286:/usr/sbin/lightparser.pl – system_u:object_r:squid_cron_exec_t:s0
Binary file /etc/selinux/targeted/contexts/files/file_contexts.bin matches
/etc/selinux/targeted/contexts/files/file_contexts.pre:2220:/usr/sbin/lightparser.pl – system_u:object_r:squid_cron_exec_t:s0
/etc/selinux/targeted/active/file_contexts:2286:/usr/sbin/lightparser.pl – system_u:object_r:squid_cron_exec_t:s0
/etc/cron.daily/lightsquid:3:#/usr/sbin/lightparser.pl -y /var/log/squid/access.log
/etc/cron.daily/lightsquid:4:/usr/sbin/lightparser.pl -y /var/log/squid/access.log