OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • How to get some minima stats/reports from squid web proxy?
« previous next »
  • Print
Pages: [1]

Author Topic: How to get some minima stats/reports from squid web proxy?  (Read 5723 times)

ssbarnea

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
    • View Profile
How to get some minima stats/reports from squid web proxy?
« 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.
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: How to get some minima stats/reports from squid web proxy?
« Reply #1 on: April 14, 2019, 05:33:17 pm »
you need a external tool like sarg or squidguard.
Logged

xames

  • Full Member
  • ***
  • Posts: 110
  • Karma: 3
    • View Profile
Re: How to get some minima stats/reports from squid web proxy?
« Reply #2 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.
Logged

marcri

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 5
    • View Profile
    • https://www.risse-it.services/
Re: How to get some minima stats/reports from squid web proxy?
« Reply #3 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
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: How to get some minima stats/reports from squid web proxy?
« Reply #4 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.
Logged

ssbarnea

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
    • View Profile
Re: How to get some minima stats/reports from squid web proxy?
« Reply #5 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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • How to get some minima stats/reports from squid web proxy?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2