--=-PMRHgmjYBwC5nMHuPz7a Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-PMRHgmjYBwC5nMHuPz7a Content-Disposition: inline Content-Description: Forwarded message - Content-Type: message/rfc822 Return-Path: Received: from smtp.west.cox.net ([172.18.180.52]) by fed1mtao02.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040105184404.WIGU27510.fed1mtao02.cox.net@smtp.west.cox.net> for ; Mon, 5 Jan 2004 13:44:04 -0500 From: To: elemint@cox.net Subject: Date: Mon, 5 Jan 2004 13:44:04 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Message-Id: <20040105184404.WIGU27510.fed1mtao02.cox.net@smtp.west.cox.net> Content-Transfer-Encoding: 7bit I have been unable to get mrtg working with Squid on my debian box. I have tried this on two different boxes with the same results. While snmpget does work I am trying to use a script located at http://www.psychofx.com/chris/unix/mrtg/mrtg-squid.cfg for the mrtg config Example output: http://www.psychofx.com/chris/unix/mrtg/squidsample/ Here is an snmpget that does work successfully for squid. snmpget -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1.1.1 SNMPv2-SMI::enterprises.3495.1.1.1 = INTEGER: 92 The problem is that mrtg will not successfully run against squid. mrtg /var/www/mrtg/mrtg-squid.cfg SNMP Error: Received SNMP response with error code error status: noSuchName index 1 (OID: 1.3.6.1.4.1.3495.1.5.2.1.2) SNMPv1_Session (remote host: "localhost" [127.0.0.1].3401) community: "public" request ID: -1877762615 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at /usr/share/perl5/SNMP_util.pm line 465 SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests cacheUptime cacheSoftware cacheVersionId on public@localhost:3401 at /usr/bin/mrtg line 1683 Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1686. Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1686. Modification of non-creatable array value attempted, subscript -2 at /usr/bin/mrtg line 1686. By the way I can run mrtf cfgs against this server although for network interface input and output sucsessfully. The mrtg-squid.cfg I am using is located here http://www.psychofx.com/chris/unix/mrtg/mrtg-squid.cfg I am making the changes requested in the commented section at the beggining for hostname etc. System Specifics: Debian kernel 2.4.21 mrtg 2.9.29-1 squid 2.5.4-2 snmpd 5.0.9-3 Jim --=-PMRHgmjYBwC5nMHuPz7a--