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
mrtg issue
General support questions
-
- Posts: 21
- Joined: 2011/05/02 16:13:43
Return to “CentOS 6 - General Support”
Jump to
- CentOS General Purpose
- ↳ CentOS - FAQ & Readme First
- ↳ Announcements
- ↳ CentOS Social
- ↳ User Comments
- ↳ Website Problems
- CentOS 8 / 8-Stream / 9-Stream
- ↳ 8 /8-Stream / 9-Stream - General Support
- ↳ 8 /8-Stream / 9-Stream - Hardware Support
- ↳ 8 /8-Stream / 9-Stream - Networking Support
- ↳ 8 /8-Stream / 9-Stream - Security Support
- CentOS 7
- ↳ CentOS 7 - General Support
- ↳ CentOS 7 - Software Support
- ↳ CentOS 7 - Hardware Support
- ↳ CentOS 7 - Networking Support
- ↳ CentOS 7 - Security Support
- CentOS Legacy Versions
- ↳ CentOS 5
- ↳ CentOS 5 - General Support
- ↳ CentOS 5 - Software Support
- ↳ CentOS 5 - Hardware Support
- ↳ CentOS 5 - Networking Support
- ↳ CentOS 5 - Server Support
- ↳ CentOS 5 - Security Support
- ↳ CentOS 5 - Oracle Installation and Support
- ↳ CentOS 5 - Miscellaneous Questions
- ↳ CentOS 6
- ↳ CentOS 6 - General Support
- ↳ CentOS 6 - Software Support
- ↳ CentOS 6 - Hardware Support
- ↳ CentOS 6 - Networking Support
- ↳ CentOS 6 - Security Support