Skip to main content

Squid SNMP

Pack assets​

Monitored objects​

  • Cache Usage
  • Protocol statistics

Collected metrics & status​

Metric nameDescriptionUnit
cache.cpu.utilization.percentageCpu usage%
cache.memory.usage.bytesMemory usageB
cache.filedescriptors.countNumber of file descriptorscount
cache.objects.countNumber of object storedcount


To use this pack, the SNMP service must be properly configured on your Squid proxy. Squid provides an official documentation to achieve this:

Network flow​

The Squid proxy must be reachable from the Centreon Poller on the UDP/161 SNMP port.


  1. Install the Centreon package on every Centreon poller expected to monitor your Squid proxy ressources:
yum install centreon-plugin-Applications-Squid-Snmp
  1. On the Centreon Web interface, install the Squid SNMP Centreon Monitoring Connector on the Configuration > Monitoring Connector Manager page



  • Log into Centreon and add a new Host through Configuration > Hosts.
  • Fill the "Name", "Alias" & "IP Address / DNS" fields according to your Squid proxy settings
  • Select the Applications-Squid-Snmp-custom template to apply to the Host

When using SNMP v3, use the SNMPEXTRAOPTIONS Macro to add specific authentication parameters More information in the Troubleshooting SNMP section.

SNMPEXTRAOPTIONSConfigure your own SNMPv3 credentials combo

How to check in the CLI that the configuration is OK and what are the main options for ?​

Once the plugin installed, log into your Centreon Poller CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins// \
--plugin=apps::squid::snmp::plugin \
--mode=cache-usage \
--hostname='' \
--snmp-version='2c' \
--snmp-community='my-snmp-community' \
--filter-counters='' \
--warning-cpu='80' \
--critical-cpu='90' \

Expected command output is shown below:

OK : Cpu usage: 30 % Memory usage: 265289728 B Number of file descriptors: 45 Number of object stored: 23 | 'cache.cpu.utilization.percentage'=30%;;;0;100 
'cache.memory.usage.bytes'=265289728B;;;0; 'cache.filedescriptors.count'=45;;;0; 'cache.objects.count'=23;;;0;

This command would trigger a WARNING alarm if the cpu utilization is reported as over 80% (--warning-cpu='80') and a CRITICAL alarm if over 90% (--critical-cpu='90').

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins//  \
--plugin=apps::squid::snmp::plugin \
--mode=cache-usage \

All available options for a given mode can be displayed by adding the --list-mode parameter to the command:

 /usr/lib/centreon/plugins//  \
--plugin=apps::squid::snmp::plugin \


UNKNOWN: SNMP GET Request : Timeout​

If you get this message, you're probably facing one of theses issues:

  • Your SNMP server isn't started or misconfigured
  • An external device is blocking your request (firewall, ...)

UNKNOWN: SNMP GET Request : Cant get a single value​

This message generally means that SNMP privileges are not wide enough for the mode/Plugin to work properly.