Sorry for the delayed response: > 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 That snmpget works fine just means that something on the remote machine is working fine in interpreting the calls. What doesn't seem to be working for you is calling the objects by name (as opposed to the number). I did notice that the mrtg.cfg file is trying to pull in a MIB with this line: LoadMIBs: /opt/mrtg/squid/mib.txt does that file exist? Also, you might want to take a look at mbrowse: http://freshmeat.net/projects/mbrowse/?topic_id=152 it allows you to dig through mib files, finding the various objects and testing walks against them to see what you are getting back in responses. The rest of the error is just the script trying to use an uninitialized variable (since it isn't getting data back, the variable is empty) and so fails from there. But it is the main issue of: Received SNMP response with error code error status: noSuchName index 1 (OID: 1.3.6.1.4.1.3495.1.5.2.1.2) that is causing all the problems.