I am having trouble with snmp on Debian Linux.  Basically 
a heap of configuration directives give errors and snmpwalk 
doesn't seem able to talk to squid.  I would really appreciate 
any help people may offer.

These are my problems. 

sand:/usr/share/doc/squid# snmpwalk localhost public enterprises.nlanr.squid    
snmpwalk: Timeout
sand:/usr/share/doc/squid# snmpwalk -m /usr/share/squid/mib.txt -IR 127.0.0.1 public
public: Unknown Object Identifier

Squid is running and something is listening on 
the snmp port.  I am not running snmpd.  Do I need to?

sand:/usr/share/doc/squid# netstat -a -n | grep -n "udp.*:3401"
25:udp        0      0 0.0.0.0:3401            0.0.0.0:*                        
26:udp        0      0 0.0.0.0:3401            0.0.0.0:*                        
sand:/usr/share/doc/squid#

I have verified that snmp support was compiled in.

I have attached the squid.conf.  The commented lines were ones that 
I got off the FAQ I think but they generate errors when squid 
starts up.
I have consulted many websites including the user manual, the 
FAQ and mailing list archives.  

Thanks in advance,

Ben Marsh

acl all src 0.0.0.0/0
acl localsrc src 192.168.0.0/16
acl kurnai dst 192.168.0.0/255.255.0.0
acl outpost url_regex outpost\.real
acl redpup url_regex redpup\.real
acl linux_serv src 192.168.151.0/24
acl localhost src 127.0.0.1/32
acl snmppublic snmp_community public
acl snmpkurnai snmp_community kurnai
snmp_access allow snmppublic localhost
snmp_access deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0
http_port 3128 8080
icp_port 3130

snmp_access allow snmppublic localhost
snmp_access deny all

snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0

snmp_port 3401 

#snmp_mib_path /usr/share/squid/etc/mib.txt 

#snmp_agent_conf view all .1.3.6 included 
#snmp_agent_conf view squid .1.3.6 included 
#snmp_agent_conf user squid - all all public 
#snmp_agent_conf user all all all all squid 
#snmp_agent_conf community public squid squid 
#snmp_agent_conf community readwrite all all 


cache_dir ufs /var/spool/squid 5000 16 256

cache_peer proxy.somdomain parent 3128 3130 no-query login=PASS
visible_hostname sand
http_access deny outpost
http_access deny redpup
http_access allow all
icp_access allow linux_serv
never_direct allow all



Reply via email to