hi guys..
i am running Squid-2.4 STABLE3 on SuSE 8.0 Pro...
squid supports SNMP and SNMP connections on port
3401.. i have configured community strings and any
other SNMP details pertinent to squid.. and it's
working fine... i have tested it with the line:
snmpwalk -p 3401 hostname communitystring
.1.3.6.1.4.1.3495.1.1 and it gives the correct
feedback as explained in the squid FAQ..
i have loaded the MIB file and used it against some
MRTG configs for squid.. and they work, except for
two, which are very important stats.. as shown by the
error below...
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.4.1.3495.1.5.2.1.2)
SNMPv1_Session (remote host: "192.168.0.2"
[192.168.0.2].3401)
community: "string"
request ID: 1052264831
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm
line 450
SNMPGET Problem for cacheHttpHits
cacheClientHttpRequests on string@192.168.0.2:3401
at ./mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
everything else works fine.. and i get stats for
cache_mem........ cpu usage etc.. except these two
here... could there be an updated MIB file for
squid..?..
attached is a text file of the MRTG config file for
squid... please advise...
all help appreciated...
AKNIT
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
WorkDir: /var/mrtg/
LoadMIBs: /home/squid-mib.txt
Options[^]: growright
WithPeak[_]: wmy
Target[proxy-hit]: cacheHttpHits&cacheClientHttpRequests:string@192.168.0.2:3401
PageTop[proxy-hit]: <H2>Request hit ratio</H2>
Title[proxy-hit]: Request hit ratio
AbsMax[proxy-hit]: 300
MaxBytes[proxy-hit]: 150
LegendI[proxy-hit]: HTTP hits
LegendO[proxy-hit]: HTTP requests
Legend1[proxy-hit]: HTTP hits
Legend2[proxy-hit]: HTTP requests
YLegend[proxy-hit]: requests / s
ShortLegend[proxy-hit]: req/s
Options[proxy-hit]: dorelpercent
Target[proxy-inhitkbinout]: cacheServerInKb&cacheHttpOutKb:string@192.168.0.2:3401
PageTop[proxy-inhitkbinout]: <H2>Incoming Traffic ratio</H2> <P>Amount of forwarded Internet traffic, not including TCP overhead</P>
Title[proxy-inhitkbinout]: Incoming Traffic ratio
AbsMax[proxy-inhitkbinout]: 10000
MaxBytes[proxy-inhitkbinout]: 1500
LegendI[proxy-inhitkbinout]: Internet
LegendO[proxy-inhitkbinout]: Browsers
Legend1[proxy-inhitkbinout]: Internet
Legend2[proxy-inhitkbinout]: Browsers
YLegend[proxy-inhitkbinout]: Incoming Traffic
kilo[proxy-inhitkbinout]: 1024
ShortLegend[proxy-inhitkbinout]: bit/s
KMG[proxy-inhitkbinout]: k,M,G,T
Options[proxy-inhitkbinout]: bits
Target[cacheICPpktsRecv]: cacheIcpPktsRecv&cacheIcpPktsRecv:string@192.168.0.2:3401
Title[cacheICPpktsRecv]: CacheICPpktsRecv
PageTop[cacheICPpktsRecv]: <H2>CacheICPpktsRecv</H2>
AbsMax[cacheICPpktsRecv]: 10000
MaxBytes[cacheICPpktsRecv]: 1000
YLegend[cacheICPpktsRecv]: Packets per second
LegendI[cacheICPpktsRecv]: cacheICPpktsRecv
LegendO[cacheICPpktsRecv]:
Legend1[cacheICPpktsRecv]: cacheICPpktsRecv
Legend2[cacheICPpktsRecv]:
ShortLegend[cacheICPpktsRecv]: pks/s
Target[proxy-outhitkbinout]: cacheServerOutKb&cacheHttpInKb:string@192.168.0.2:3401
PageTop[proxy-outhitkbinout]: <H2>Outgoing Traffic ratio</H2> <P>Amount of forwarded Internet traffic, not including TCP overhead</P>
Title[proxy-outhitkbinout]: Outgoing Traffic ratio
MaxBytes[proxy-outhitkbinout]: 500
LegendI[proxy-outhitkbinout]: Internet
LegendO[proxy-outhitkbinout]: Browsers
Legend1[proxy-outhitkbinout]: Internet
Legend2[proxy-outhitkbinout]: Browsers
YLegend[proxy-outhitkbinout]: Outgoing Traffic
kilo[proxy-outhitkbinout]: 1024
ShortLegend[proxy-outhitkbinout]: bit/s
KMG[proxy-outhitkbinout]: k,M,G,T
Options[proxy-outhitkbinout]: bits
Target[cacheServerErrors]: cacheServerErrors&cacheServerErrors:string@192.168.0.2:3401
Title[cacheServerErrors]: CacheServerErrors (internal)
PageTop[cacheServerErrors]: <H2>CacheServerErrors</H2>
MaxBytes[cacheServerErrors]: 100000
YLegend[cacheServerErrors]: Errors per hour
LegendI[cacheServerErrors]: cacheServerErrors
LegendO[cacheServerErrors]:
Legend1[cacheServerErrors]: cacheServerErrors
Legend2[cacheServerErrors]:
Options[cacheServerErrors]: perhour
Target[cacheHttpErrors]: cacheHttpErrors&cacheHttpErrors:string@192.168.0.2:3401
Title[cacheHttpErrors]: CacheHttpErrors (internal)
PageTop[cacheHttpErrors]: <H2>CacheHttpErrors</H2>
MaxBytes[cacheHttpErrors]: 100000
YLegend[cacheHttpErrors]: Errors per hour
LegendI[cacheHttpErrors]: cacheHttpErrors
LegendO[cacheHttpErrors]:
Legend1[cacheHttpErrors]: cacheHttpErrors
Legend2[cacheHttpErrors]:
Options[cacheHttpErrors]: perhour
Target[cacheICPpktsSent]: cacheIcpPktsSent&cacheIcpPktsSent:string@192.168.0.2:3401
Title[cacheICPpktsSent]: CacheICPpktsSent (internal)
PageTop[cacheICPpktsSent]: <H2>CacheICPpktsSent</H2>
MaxBytes[cacheICPpktsSent]: 10000000
YLegend[cacheICPpktsSent]: Packets per second
LegendI[cacheICPpktsSent]: cacheICPpktsSent
LegendO[cacheICPpktsSent]:
Legend1[cacheICPpktsSent]: cacheICPpktsSent
Legend2[cacheICPpktsSent]:
ShortLegend[cacheICPpktsSent]: pks/s
Target[cacheICPkbSent]: cacheIcpKbSent&cacheIcpKbSent:string@192.168.0.2:3401
Title[cacheICPkbSent]: CacheICPkbSent (internal)
PageTop[cacheICPkbSent]: <H2>CacheICPkbSent</H2>
MaxBytes[cacheICPkbSent]: 1000000
YLegend[cacheICPkbSent]: ICP traffic
LegendI[cacheICPkbSent]: cacheICPkbSent
LegendO[cacheICPkbSent]:
Legend1[cacheICPkbSent]: cacheICPkbSent
Legend2[cacheICPkbSent]:
ShortLegend[cacheICPkbSent]: bit/s
KMG[cacheICPkbSent]: k,M,G,T
Options[cacheICPkbSent]: bits
Target[cacheICPkbRecv]: cacheIcpKbRecv&cacheIcpKbRecv:string@192.168.0.2:3401
Title[cacheICPkbRecv]: CacheICPkbRecv (internal)
PageTop[cacheICPkbRecv]: <H2>CacheICPkbRecv</H2>
MaxBytes[cacheICPkbRecv]: 1000000
YLegend[cacheICPkbRecv]: ICP traffic
LegendI[cacheICPkbRecv]: cacheICPkbRecv
LegendO[cacheICPkbRecv]:
Legend1[cacheICPkbRecv]: cacheICPkbRecv
Legend2[cacheICPkbRecv]:
ShortLegend[cacheICPkbRecv]: B/s
KMG[cacheICPkbRecv]: k,M,G,T
Options[cacheICPkbRecv]: bits
Target[cacheCurrentSwapSize]: cacheCurrentSwapSize&cacheCurrentSwapSize:string@192.168.0.2:3401
Title[cacheCurrentSwapSize]: CacheCurrentSwapSize (internal)
PageTop[cacheCurrentSwapSize]: <H2>Cache Size</H2>
MaxBytes[cacheCurrentSwapSize]: 27000000
YLegend[cacheCurrentSwapSize]: Cache Size
LegendI[cacheCurrentSwapSize]: Cache Size
LegendO[cacheCurrentSwapSize]:
Legend1[cacheCurrentSwapSize]: Cache Size
Legend2[cacheCurrentSwapSize]:
KMG[cacheCurrentSwapSize]: k,M,G,T
ShortLegend[cacheCurrentSwapSize]: byte
Options[cacheCurrentSwapSize]: gauge
Target[cacheNumObjCount]: cacheNumObjCount&cacheNumObjCount:string@192.168.0.2:3401
Title[cacheNumObjCount]: CacheNumObjCount
PageTop[cacheNumObjCount]: <H2>CacheNumObjCount</H2>
MaxBytes[cacheNumObjCount]: 2000000
YLegend[cacheNumObjCount]: Cache Objects
LegendI[cacheNumObjCount]: Objects
LegendO[cacheNumObjCount]:
Legend1[cacheNumObjCount]: Objects
Legend2[cacheNumObjCount]:
#KMG[cacheNumObjCount]: k,M,G,T
ShortLegend[cacheNumObjCount]: objs
Options[cacheNumObjCount]: gauge
Target[cacheCpuUsage]: cacheCpuTime&cacheCpuTime:string@192.168.0.2:3401
Title[cacheCpuUsage]: Cache CPU Usage
PageTop[cacheCpuUsage]: <H2>CPU Usage</H2>
MaxBytes[cacheCpuUsage]: 3600
YLegend[cacheCpuUsage]: CPU Usage s/hour
LegendI[cacheCpuUsage]: CPU
LegendO[cacheCpuUsage]:
Legend1[cacheCpuUsage]: CPU
Legend2[cacheCpuUsage]:
Options[cacheCpuUsage]: perhour
Target[cacheMemUsage]: cacheMemUsage&cacheMemUsage:string@192.168.0.2:3401
Title[cacheMemUsage]: Cache Memory Usage
PageTop[cacheMemUsage]: <H2>Memory Usage</H2>
MaxBytes[cacheMemUsage]: 420000
YLegend[cacheMemUsage]: Memory Usage
LegendI[cacheMemUsage]: Memory
LegendO[cacheMemUsage]:
Legend1[cacheMemUsage]: Memory
Legend2[cacheMemUsage]:
Options[cacheMemUsage]: gauge
Target[cacheSysPageFaults]: cacheSysPageFaults&cacheSysPageFaults:string@192.168.0.2:3401
Title[cacheSysPageFaults]: CacheSysPageFaults (internal)
PageTop[cacheSysPageFaults]: <H2>CacheSysPageFaults</H2>
MaxBytes[cacheSysPageFaults]: 100000
YLegend[cacheSysPageFaults]: Page Faults
LegendI[cacheSysPageFaults]: Page Faults
LegendO[cacheSysPageFaults]:
Legend1[cacheSysPageFaults]: Page Faults
Legend2[cacheSysPageFaults]:
ShortLegend[cacheSysPageFaults]: pgs
Received on Thu Jun 06 2002 - 05:44:44 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:28 MST