I’m trying to monitor a couple of squid servers, I configured everything as per the guide and I get the snmp info from the system correctly (cpu, RAM, disk, network, etc.), but I can’t get SNMP data from squid application.
The proxy is correctly set up and snmpget and snmpwalk launched from the librenms servers are fine with squid OIDs.
The problem, seen launching the discovery manually with -vvv, seems to be that snmpget has a “-Cc” switch which isn’t a valid option for this command (while it’s valid for snmpwalk), and therefore the command fails and results are not read.
The output of ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 25.3.0-91-g266c806a1 (2025-04-03T23:56:41+02:00)
DB Schema | 2025_03_19_205700_fix_ospfv3_ports_table (331)
PHP | 8.3.19
Python | 3.10.12
Database | MariaDB 10.6.21-MariaDB-0ubuntu0.22.04.2
RRDTool | 1.7.2
SNMP | 5.9.1
===========================================
[OK] Composer Version: 2.8.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
in fact, -Cc should never be added to any snmpget command. It makes only sense in walks. I don’t think there is an easy way to prevent -Cc to be added to snmpget commands. The allowUnordered call has no way to know if we are in a get or in a walk.
Hi @fpasqua75
When checking your discovery logs, I don’t see any error in the application discovery part, mostly because nothing is discovered at all. Did you enable the squid application ?
You can run the discovery with -m applications to only rediscover the application part.
@fpasqua75 thanks for the fix. I added it to LibreNMS for you. Next time submit the change for everyone. On github, you can browse to the file, click edit and then make the change, afterwards, you can create a pull request of the change to request it be added to LibreNMS