*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm facing the following challenge, I'm trying to make a proxy server with sarg to cache and monitor the internet traffic on my company.
I'm currently using:
OpenBSD 4.1
squid-2.6.STABLE9-transparent-snmp
sarg-2.1p0
Apache 1.3.x in chroot (default for OBSD)
All standard, precompiled packages provided on the OpenBSD repository.
I have apache working serving web pages, I also installed and configured squid and at this very moment it is working and caching all web traffic, now I need to see what is it that is caching.
Does anybody knows of a good howto configure sarg on OBSD so to point me on the right directions?
Any help will be appreciated, thanks in advance.
P.S: If not sarg, it could be any other monitoring tool.
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
Hi,
Firstly, I've never used SARG, but it sounds like something that might be worth me checking out for my system
Anyway, given that it appears to know where to find the squid access.log, are you sure that it has permissions to read the file? A quick glance indicates that the user sarg runs as would probably need to be in the _squid group.
I still don't know who it happens, any input to clarify why it worked will be appreciated.
Used the sarg command parsing along the way the file to get the input from to somehow force the file load, and to my surprise it worked.
Code:
sarg -f /var/squid/logs/access/log
After that just needed to solved minor details in apache, then I went and commented the line from this
Code:
# TAG: access_log file
# Where is the access.log file
# sarg -l file
#
access_log /var/squid/logs/access.log
to
Code:
# TAG: access_log file
# Where is the access.log file
# sarg -l file
#
#access_log /var/squid/logs/access.log
now I just input
Code:
sarg
and everything is working just fine. Again, due to the fact that I'm new to the proxy thing I must have been missing something before, so anyone who might know about this behaviour and cares to explain me why it behave the way it did is appreciated
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.