<br />
<br />
On Fri, 08 Oct 2010 03:14:01 +0530  wrote<br />
>>><br />
><br />
>I'm including a replacement for your SNMP_util.pm file.<br />
><br />
>It sounds like it goes in your /usr/local/lib/perl5/site_perl/5.10.1<br />
><br />
>directory, but I'm not sure. Search your filesystem for a file named <br />
>'SNMP_util.pm' and replace all copies with the one I'm including.<br />
><br />
><br />
><br />
>I've added a few diagnostic lines that will trigger when a MIB file <br />
>with 'squid' in its name is loaded.<br />
><br />
><br />
><br />
>Please use the replacement SNMP_util.pm file and send me the result of <br />
>an mrtg run that uses the squid MIB file.<br />
><br />
><br />
><br />
>Mike Mitchell <br />
<br />
Hi Mike,<br />
Thank you so much for the reply, I replaced my SNMP_util.pm file with <br />
the one you send it across and I found no changes at all in mrtg log. <br />
So its almost clear now that the LoadMIBs doesn't touch the squid.mib <br />
file at all.<br />
Below  are the log details<br />
<br />
010-10-08 09:44:11 -- Started mrtg with config <br />
'/usr/local/etc/mrtg/mrtg.cfg'<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheHttpHits<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheServerRequests<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheUptime<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheSoftware<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheVersionId<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Use of uninitialized value $ret[-2] in <br />
concatenation (.) or string at /usr/local/bin/mrtg line 2261.<br />
2010-10-08 09:44:11 -- Use of uninitialized value $ret[-1] in <br />
concatenation (.) or string at /usr/local/bin/mrtg line 2261.<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheServerInKb<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheServerOutKb<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheUptime<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheSoftware<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Unknown SNMP var cacheVersionId<br />
 at /usr/local/bin/mrtg line 2242<br />
2010-10-08 09:44:11 -- Use of uninitialized value $ret[-2] in <br />
concatenation (.) or string at /usr/local/bin/mrtg line 2261.<br />
2010-10-08 09:44:11 -- Use of uninitialized value $ret[-1] in <br />
concatenation (.) or string at /usr/local/bin/mrtg line 2261.<br />
2010-10-08 09:44:11 -- 2010-10-08 09:44:11: ERROR: Target[proxy-<br />
hit][_IN_] ' $target->[0]{$mode} ' did not eval into defined data<br />
2010-10-08 09:44:11 -- 2010-10-08 09:44:11: ERROR: Target[proxy-<br />
hit][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data<br />
2010-10-08 09:44:11 -- 2010-10-08 09:44:11: ERROR: Target[proxy-<br />
srvkbinout][_IN_] ' $target->[1]{$mode} ' did not eval into defined <br />
data<br />
2010-10-08 09:44:11 -- 2010-10-08 09:44:11: ERROR: Target[proxy-<br />
srvkbinout][_OUT_] ' $target->[1]{$mode} ' did not eval into defined <br />
data<br />
<br />
Where I have SNMP_util.pm files<br />
<br />
testmc# find / -name SNMP_util.pm<br />
/usr/local/lib/perl5/site_perl/5.10.1/SNMP_util.pm<br />
/usr/ports/net-mgmt/p5-SNMP_Session/work/SNMP_Session-<br />
1.12/lib/SNMP_util.pm<br />
/usr/ports/net-mgmt/p5-SNMP_Session/work/SNMP_Session-<br />
1.12/blib/lib/SNMP_util.pm<br />
/usr/home/babs/SNMP_util.pm<br />
<br />
<br />
Also the top portion of mrtg.cfg <br />
<br />
testmc# head -4 /usr/local/etc/mrtg/mrtg.cfg<br />
EnableIPv6: no<br />
WorkDir: /usr/local/www/apache22/data<br />
Options[_]: bits,growright<br />
LoadMIBs: /usr/local/etc/mrtg/squid.mib<br />
<br />
<br />
May be these things may help you, I suppose?<br />
<br />
Still scratching my head to get a clue<br />
<br />
With thanx & regards<br />
Babs<br />
<br />
<br />
<br />
<br />
<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>