Monitoring Squid dengan MRTG
#compile squid dengan option –enable-snmp
#SQUID.CONF
http_port 192.168.10.1:8080
acl netmon src 192.168.100.10/255.255.255.255
acl snmpcommunity snmp_community public
snmp_port 3401
snmp_access allow snmpcommunity netmon snmpcommunity
#MRT-SQUID.CONF
WorkDir: /home/netmon/mrtg/squid
WriteExpires: Yes
LoadMIBs: /usr/local/etc/squid/mib.txt
Options[^]: growright
XSize[]: 350
YSize[]: 90
WithPeak[^]: y
MaxBytes[_]: 30000000
Target[proxy-hit]: 1.3.6.1.4.1.3495.1.3.2.1.2&1.3.6.1.4.1.3495.1.3.2.1.1:public@192.168.10.1:3401
Title[proxy-hit]: HTTP Hits
PageTop[proxy-hit]: <H1> HTTP Hits / Requests </H1>
#Suppress[proxy-hit]: y
LegendI[proxy-hit]: HTTP hits
LegendO[proxy-hit]: HTTP requests
Legend1[proxy-hit]: HTTP hits
Legend2[proxy-hit]: HTTP requests
YLegend[proxy-hit]: perminute
ShortLegend[proxy-hit]: req/min
Options[proxy-hit]: nopercent, perminute, dorelpercent
Target[proxy-requests]: 1.3.6.1.4.1.3495.1.3.2.1.11&1.3.6.1.4.1.3495.1.3.2.1.10:public@192.168.10.1:3401
Title[proxy-requests]: Cache Server Errors / Requests
PageTop[proxy-requests]: <H1> Server Errors / Requests </H1>
#Suppress[proxy-requests]: y
LegendI[proxy-requests]: Errors
LegendO[proxy-requests]: Requests
Legend1[proxy-requests]: Errors
Legend2[proxy-requests]: Requests
YLegend[proxy-requests]: per minute
ShortLegend[proxy-requests]: 1/min
Options[proxy-requests]: nopercent, perminute, dorelpercent
Target[proxy-srvkbinout]: 1.3.6.1.4.1.3495.1.3.2.1.12&1.3.6.1.4.1.3495.1.3.2.1.13:public@192.168.10.1:3401
Title[proxy-srvkbinout]: Cache Server Traffic In / Out
PageTop[proxy-srvkbinout]: <H1>Server traffic volume (In/Out) </H1>
#Suppress[proxy-srvkbinout]: y
LegendI[proxy-srvkbinout]: Traffic In
LegendO[proxy-srvkbinout]: Traffic Out
Legend1[proxy-srvkbinout]: Traffic In
Legend2[proxy-srvkbinout]: Traffic Out
YLegend[proxy-srvkbinout]: per minute
ShortLegend[proxy-srvkbinout]: b/min
#ShortLegend[proxy-srvkbinout]: kb/min
kilo[proxy-srvkbinout]: 1024
kMG[proxy-srvkbinout]: k,M,G,T
Options[proxy-srvkbinout]: nopercent, perminute
Target[proxy-httpsvc]: 1.3.6.1.4.1.3495.1.3.2.2.1.2.5&1.3.6.1.4.1.3495.1.3.2.2.1.2.5:public@192.168.10.1:3401
Title[proxy-httpsvc]: HTTP svc
PageTop[proxy-httpsvc]: <H1>HTTP Median Service Time (5 min)</H1>
#Suppress[proxy-httpsvc]: y
LegendI[proxy-httpsvc]: HTTP 5min svc
LegendO[proxy-httpsvc]:
Legend1[proxy-httpsvc]: HTTP 5 min cache Median Service Time
Legend2[proxy-httpsvc]:
YLegend[proxy-httpsvc]: msec
ShortLegend[proxy-httpsvc]: ms
Options[proxy-httpsvc]: nopercent, gauge
Target[proxy-mem]: 1.3.6.1.4.1.3495.1.3.1.4&1.3.6.1.4.1.3495.1.3.1.4:public@192.168.10.1:3401
Title[proxy-mem]: Cache Mem Usage
PageTop[proxy-mem]: <H1>Cache Mem Usage </H1>
MaxBytes[proxy-mem]: 100000
#Suppress[proxy-mem]: y
ShortLegend[proxy-mem]: Byte
LegendI[proxy-mem]: CacheMemUsage
LegendO[proxy-mem]:
Legend1[proxy-mem]: CacheMemUsage
Legend2[proxy-mem]:
YLegend[proxy-mem]: Byte
Options[proxy-mem]: gauge, nopercent, perhour
Target[cacheRequestHitRatio]: cacheRequestHitRatio.5&cacheRequestHitRatio.60:public@192.168.10.1:3401
MaxBytes[cacheRequestHitRatio]: 100
AbsMax[cacheRequestHitRatio]: 100
Title[cacheRequestHitRatio]: Request Hit Ratio
Options[cacheRequestHitRatio]: absolute, gauge, noinfo, growright, nopercent
Unscaled[cacheRequestHitRatio]: dwmy
PageTop[cacheRequestHitRatio]: <H1>Request Hit Ratio </H1>
YLegend[cacheRequestHitRatio]: %
ShortLegend[cacheRequestHitRatio]: %
LegendI[cacheRequestHitRatio]: Median Hit Ratio (5min)
LegendO[cacheRequestHitRatio]: Median Hit Ratio (60min)
Legend1[cacheRequestHitRatio]: Median Hit Ratio
Legend2[cacheRequestHitRatio]: Median Hit Ratio
Target[cacheRequestByteRatio]: cacheRequestByteRatio.5&cacheRequestByteRatio.60:public@192.168.10.1:3401
MaxBytes[cacheRequestByteRatio]: 100
AbsMax[cacheRequestByteRatio]: 100
Title[cacheRequestByteRatio]: Byte Hit Ratio
Options[cacheRequestByteRatio]: absolute, gauge, noinfo, growright, nopercent
Unscaled[cacheRequestByteRatio]: dwmy
PageTop[cacheRequestByteRatio]: <H1>Byte Hit Ratio</H1>
YLegend[cacheRequestByteRatio]: %
ShortLegend[cacheRequestByteRatio]:%
LegendI[cacheRequestByteRatio]: Median Hit Ratio (5min)
LegendO[cacheRequestByteRatio]: Median Hit Ratio (60min)
Legend1[cacheRequestByteRatio]: Median Hit Ratio
Legend2[cacheRequestByteRatio]: Median Hit Ratio
Target[cacheCpuTime]: cacheCpuTime&cacheCpuTime:public@192.168.10.1:3401
MaxBytes[cacheCpuTime]: 1000000000
Title[cacheCpuTime]: Cpu Time
Options[cacheCpuTime]: gauge, growright, nopercent
PageTop[cacheCpuTime]: <H1>Amount of cpu seconds consumed </H1>
YLegend[cacheCpuTime]: cpu seconds
ShortLegend[cacheCpuTime]: cpu seconds
LegendI[cacheCpuTime]: Mem Time
LegendO[cacheCpuTime]:
Legend1[cacheCpuTime]: Mem Time
Legend2[cacheCpuTime]:
Comments