Re: Squid 1.2beta18 and SNMP

From: MUKAIGAWA Shin'ichi/mail protected] <Shin'ichi/mail protected]>
Date: Fri, 27 Mar 1998 14:42:28 +0900

Sorry I did not explain about MRTG.
please refer, http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
MRTG is very good visualizing tool with SNMP.

>>>>> On Thu, 26 Mar 1998 01:25:34 MST,
>>>>> Kostas Anagnostakis <kostas@nlanr.net> said:

 kostas> Squid's SNMP agent should actually run on port 3401. If you absolutely
 kostas> need to run it on port 161 this would require squid to run as root.

I changed to 3401, but not works well.
snmpwalk returns this, is it OK?

$ snmpwalk -v 1 mook public
system.sysDescr = 1.2.beta18
system.sysObjectID = Wrong Type (should be OBJECT IDENTIFIER): "1.2.beta18"
system.sysUpTime = Timeticks: (672) 0:00:06
system.sysContact = www.nff.ncl.omron.co.jp
system.sysName = www.nff.ncl.omron.co.jp
system.sysLocation = Cyberspace
system.sysServices = 72
system.sysORLastChange = Timeticks: (672) 0:00:06
$

 kostas> For MRTG you will need some modifications (mainly to display per minute
 kostas> rather than per second rates, and for using port 3401). A "need-some-work"
 kostas> patch for mrtg, plus sample configuration can be found at:

 kostas> http://www.nlanr.net/Cache/cache-snmp/mrtg-demo

I patched to MRTG-2.5.2, but MRTG failed like this.

$ mrtg-squid squid.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.3.25.17.3.2.1.16)
SNMPv1_Session (remote host: "mook.nff.ncl.omron.co.jp" [133.210.2.24].3401
                  community: "public"
                 request ID: 1490999104
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET: Failed to reach target: "cacheHttpMedianSvcHour&cacheDNSMedianSvcHour:public@mook.nff.ncl.omron.co.jp". I tried multiple times!
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.3.25.17.3.2.1.15)
SNMPv1_Session (remote host: "mook.nff.ncl.omron.co.jp" [133.210.2.24].3401
                  community: "public"
                 request ID: 261310563
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET: Failed to reach target: "cacheHttpMedianSvcFiveMin&cacheDNSMedianSvcFiveMin:public@mook.nff.ncl.omron.co.jp". I tried multiple times!
(--- CUT ---)

I think MRTG can not find properly entry with Squid.
My squid.conf does not have snmp_agent_conf lines,
how to write a configuration for MRTG?
(There is no sample of squid.conf.)

Best regards,

--
       $B8~@n(B $B?.0l(B <Mukaigawa Shin'ichi>
       mailto:shin@ari.ncl.omron.co.jp
       http://www.wg.omron.co.jp/~shin/
Received on Thu Mar 26 1998 - 21:46:02 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:28 MST