OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: ssbarnea on April 14, 2019, 04:52:01 pm

Title: How to get some minima stats/reports from squid web proxy?
Post by: ssbarnea on April 14, 2019, 04:52:01 pm
While I was able to get Squid to work it seems that the plugin provides zero stats/reports regarding squid activity.

There is not way to find basic information like: cache size (mb), saved traffic (mb), hit/miss ratio, which network clients used the proxy.
Title: Re: How to get some minima stats/reports from squid web proxy?
Post by: fabian on April 14, 2019, 05:33:17 pm
you need a external tool like sarg or squidguard.
Title: Re: How to get some minima stats/reports from squid web proxy?
Post by: xames on June 20, 2019, 05:07:29 pm
How to install squidguard on opnsense then?

I don't know if squidguard is necesary, I only want to know something about my squid clients, seems nothing on opnsense for that? read information on readible format of course.
Title: Re: How to get some minima stats/reports from squid web proxy?
Post by: marcri on June 22, 2019, 09:40:37 pm
I use Check_MK with Squid-Plugin. On OPNsense use these script:

Code: [Select]
root@opn:~ # cat /opt/check_mk/plugins/squid
#!/bin/sh

if type squidclient > /dev/null 2>&1 ; then
  echo "<<<check_squid>>>"
 
/usr/local/sbin/squidclient -p 8080 -T2 mgr:5min | grep ' = '

Sarg runs on OPNSense, too. I copied "sarg-reports" script from linux, so daily, weekly and monthly reports were generated by cron
Title: Re: How to get some minima stats/reports from squid web proxy?
Post by: fabian on June 22, 2019, 10:59:31 pm
xames: sorry, the alternative is called lightsqud. Both are available via pkg but not as a official plugin.
Title: Re: How to get some minima stats/reports from squid web proxy?
Post by: ssbarnea on September 07, 2019, 11:33:24 am
I am still hopping to find a simple solution for including a mini dashboard item regarding the caching status, not a hack.