[squid-users] Trouble getting SNMP to work in Squid 5

Chris Horry zerbey at gmail.com
Thu Dec 21 02:53:28 UTC 2017


Hello all,

I'm using the following configuration for SNMP:

acl horry src 192.168.0.0/16
...
snmp_port 3401
acl snmppublic snmp_community <snip>
snmp_access allow snmppublic horry localhost
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0



Squid is compiled with the --enable-snmp option.

$ squid --version
Squid Cache: Version 5.0.0-20171215-rb7c260f
Service Name: squid
configure options:  '--enable-ssl' '--enable-linux-netfilter'
'--enable-htcp' '--enable-snmp' '--enable-storeio=ufs,diskd,aufs'
'--enable-async-io' '--with-aio' '--with-large-files'
'--enable-removal-policies=heap'

However, when I try to query SNMP:

$ snmpwalk -m ../share/mib.txt -v2c -Cc -c <snip> localhost:3401
MIB search path:
/home/zerbey/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMPv2-SMI): At line 8 in ../share/mib.txt
Cannot find module (SNMPv2-TC): At line 11 in ../share/mib.txt
Cannot find module (INET-ADDRESS-MIB): At line 14 in ../share/mib.txt
Did not find 'enterprises' in module #-1 (../share/mib.txt)
Did not find 'DisplayString' in module #-1 (../share/mib.txt)
Did not find 'InetAddressType' in module #-1 (../share/mib.txt)
Did not find 'InetAddress' in module #-1 (../share/mib.txt)
Unlinked OID in SQUID-MIB: nlanr ::= { enterprises 3495 }
Undefined identifier: enterprises near line 50 of ../share/mib.txt
Cannot adopt OID in SQUID-MIB: cacheCurrentFileDescrMax ::= { cacheSysPerf
13 }
...this continues for many lines, but the gist is it doesn't get any
data... ending on...
Cannot adopt OID in SQUID-MIB: cacheIpCache ::= { cacheNetwork 1 }


Tried various iterations of snmpwalk including from other hosts and with
udp/tcp.  Never get any response.

Not sure where to go from here, is there any other debugging I can enable
or is SNMP configured differently in v5?

Thanks!

Chris




-- 
Chris Horry
Ham Radio - KG4TSM
zerbey at gmail.com
http://twitter.com/zerbey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20171220/d33e662b/attachment.html>


More information about the squid-users mailing list