darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
125 stars 36 forks source link

Graphics #209

Closed Andruwka1989 closed 5 years ago

Andruwka1989 commented 5 years ago

Have a nice day! I have a problem with squidanalyzer. Graphics stopped showing on all pages of web-interface after I did change locale and language to RU. Where should I found logs or what can I do to resolve this issue? OS Centos 7 x86_64, perl v5.16.3, squidanalyzer v6.6

darold commented 5 years ago

What the apache error log reports?

Andruwka1989 commented 5 years ago

http://paste.ubuntu.com/p/hsSQsk8R97/ That is it?

darold commented 5 years ago

There is no error related to squidanalyzer. So does the squid-analyzer command reports any error or warning?

darold commented 5 years ago

And what does the following command reports:

ls -la /var/www/squidanalyzer/
Andruwka1989 commented 5 years ago

There are no errors or warnings. Output of command ls: http://paste.ubuntu.com/p/RRTwq2kdv6

darold commented 5 years ago

Can you post the source of file /var/www/squidanalyzer/2019/index.html please?

Andruwka1989 commented 5 years ago

http://paste.ubuntu.com/p/9xPZj6gMbV/

Andruwka1989 commented 5 years ago

So, what can you say about it?)

darold commented 5 years ago

I would say that you have not only change locale but also the value of the WebUrl configuration directive in squidanalyzer.conf. If you use the /squidreport alias in your apache configuration as suggested by the installer you must have the following:

WebUrl  /squidreport

instead of

WebUrl  /squidanalyzer
darold commented 5 years ago

Change the value and run squid-analyzer -b 2019-08 --rebuild that should fix the problem.

Andruwka1989 commented 5 years ago

So, it does not help =(

darold commented 5 years ago

Look at the source code of the index.html page in you browser and clik on a JS resources; fix the path so that it can find it and the graphs will appears. This is what I've done with your file.

Andruwka1989 commented 5 years ago

OK, thank you, it work =)