mrtg issue

General support questions

mrtg issue

Postby benjo11111 » 2012/01/24 05:20:36

Hi,

We are using mrtg to monitor snmp for squid mibs.And for that we did required configuration in squid and snmp and it is working fine.tested with commandline snmpwalk command.

But when we integrate it with mrtg, we got erros.


mrtg.conf


############################ configuration ###############################
LoadMIBs: /usr/share/snmp/mibs/SQUID-MIB.txt

Target[cacheHttpHits]: cacheHttpHits&cacheHttpHits:public@127.0.0.1:3401
MaxBytes[cacheHttpHits]: 10000000
Title[cacheHttpHits]: HTTP Hits localhost
Options[cacheHttpHits]: growright, nopercent, perminute, dorelpercent, unknaszero
PageTop[cacheHttpHits]:

HTTP Hits - Proxy Server


YLegend[cacheHttpHits]: hits/sec
ShortLegend[cacheHttpHits]: hits/s
LegendI[cacheHttpHits]: Hits 
LegendO[cacheHttpHits]:
Legend1[cacheHttpHits]: Hits
Legend2[cacheHttpHits]:


#######################################################################################################

And when try , to run LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok ,
got below erros

Unknown SNMP var cacheHttpHits
at /usr/bin/mrtg line 2202
Unknown SNMP var cacheHttpHits
at /usr/bin/mrtg line 2202
Unknown SNMP var cacheUptime
at /usr/bin/mrtg line 2202
Unknown SNMP var cacheSoftware
at /usr/bin/mrtg line 2202
Unknown SNMP var cacheVersionId
at /usr/bin/mrtg line 2202
Use of uninitialized value $ret[-2] in concatenation (.) or string at /usr/bin/mrtg line 2221.
Use of uninitialized value $ret[-1] in concatenation (.) or string at /usr/bin/mrtg line 2221.
2012-01-24 10:48:55: ERROR: Target[cachehttphits][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
2012-01-24 10:48:55: ERROR: Target[cachehttphits][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data


i thought that mrtg is not loading mib file which mentioned in mrtg.conf because it's looking for versionid and others which did not mention in mrtg.conf for squid mibs.

os : centos 6 64 bit
squid version : 3.1.10

Kindly guide me to solve it.

Regards,
Ben
benjo11111
 
Posts: 21
Joined: 2011/05/02 16:13:43

Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 7 guests