[squid-users] Monitoring Squid using SNMP.
Leonardo Rodrigues
leolistas at solutti.com.br
Wed Oct 21 11:50:54 UTC 2015
Em 20/10/15 16:26, Sebastien.Boulianne at cpu.ca escreveu:
>
> When I try to do a snmpwalk, I got a timeout.
>
> [root at bak ~]# snmpwalk xxxxxxxxxx:3401 -c cpuread -v 1
>
> [root at bak ~]#
>
> Anyone monitor Squid using SNMP ? Do you experiment some issues ?
>
>
You're not getting timeout, you're getting no data, which is
completly different from timeout.
Try giving the initial MIB number and you'll probably get the data:
[root at firewall ~]# snmpwalk -v 1 -c public localhost:3401
.1.3.6.1.4.1.3495.1
SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER: 419756
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 96398932
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (77355691) 8 days,
22:52:36.91
SNMPv2-SMI::enterprises.3495.1.2.1.0 = STRING: "webmaster"
SNMPv2-SMI::enterprises.3495.1.2.2.0 = STRING: "squid"
SNMPv2-SMI::enterprises.3495.1.2.3.0 = STRING: "3.5.8"
and to make things easier, i use to configure the SNMP daemon that
runs on UDP/161 to 'proxy' requests to squid, so i dont need to worry
about informing the correct port:
[root at firewall snmp]# grep proxy snmpd.conf
# proxying requests to squid MIB
proxy -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1
so i can 'snmpwalk' on the default udp/161 port: (note the lack of
:3401 port)
[root at firewall snmp]# snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.3495.1
SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER: 419964
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 96359504
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (77370521) 8 days,
22:55:05.21
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes at solutti.com.br
My SPAMTRAP, do not email it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20151021/a3bd1972/attachment-0001.html>
More information about the squid-users
mailing list