Slackware 12.2 - MRTG graph for Squid ===================================== Public domain ******************************************************************************** ### /usr/local/mrtg-2/etc/squid.cfg #snmpwalk -m ALL -v 1 -c public 127.0.0.1:3401 cacheUptime #LoadMIBs: /usr/share/snmp/mibs/squid-mib.txt LoadMIBs: /usr/local/squid/share/mib.txt workdir: /var/www/htdocs/squid Target[cacheCpuUsage]: cacheCpuUsage&cacheCpuUsage:public@127.0.0.1:3401 Title[cacheCpuUsage]: CPU Usage PageTop[cacheCpuUsage]:

CPU Usage

MaxBytes[cacheCpuUsage]: 100 AbsMax[cacheCpuUsage]: 100 Colours[cacheCpuUsage]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheCpuUsage]:% YLegend[cacheCpuUsage]: usage % Legend1[cacheCpuUsage]: cacheCpuUsage LegendI[cacheCpuUsage]: CPU Usage Legend2[cacheCpuUsage]: LegendO[cacheCpuUsage]: Options[cacheCpuUsage]: absolute, gauge, noinfo, nopercent Unscaled[cacheCpuUsage]: dwmy Target[cacheDnsSvcTime]: cacheDnsSvcTime.5&cacheDnsSvcTime.60:public@127.0.0.1:3401 Title[cacheDnsSvcTime]: DNS Service Time PageTop[cacheDnsSvcTime]:

DNS Service Time

MaxBytes[cacheDnsSvcTime]: 1000000000 Colours[cacheDnsSvcTime]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheDnsSvcTime]: ms YLegend[cacheDnsSvcTime]: svc time (ms) Legend1[cacheDnsSvcTime]: cacheDnsSvcTime.5 LegendI[cacheDnsSvcTime]: Median Svc Time (5min)  Legend2[cacheDnsSvcTime]: cacheDnsSvcTime.60 LegendO[cacheDnsSvcTime]: Median Svc Time (60min)  Options[cacheDnsSvcTime]: gauge, nopercent Target[cacheServerRequests-cacheServerErrors]: cacheServerRequests&cacheServerErrors:public@127.0.0.1:3401 * 60 Title[cacheServerRequests-cacheServerErrors]: Server Requests/Errors PageTop[cacheServerRequests-cacheServerErrors]:

Server Requests / Server Errors

MaxBytes[cacheServerRequests-cacheServerErrors]: 1000000000 Colours[cacheServerRequests-cacheServerErrors]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheServerRequests-cacheServerErrors]: req/min YLegend[cacheServerRequests-cacheServerErrors]: requests/min Legend1[cacheServerRequests-cacheServerErrors]: cacheServerRequests LegendI[cacheServerRequests-cacheServerErrors]: all Legend2[cacheServerRequests-cacheServerErrors]: cacheServerErrors LegendO[cacheServerRequests-cacheServerErrors]: err Options[cacheServerRequests-cacheServerErrors]: nopercent Target[cacheProtoClientHttpRequests-cacheHttpHits]: cacheProtoClientHttpRequests&cacheHttpHits:public@127.0.0.1:3401 * 60 Title[cacheProtoClientHttpRequests-cacheHttpHits]: Client Requests/Hits PageTop[cacheProtoClientHttpRequests-cacheHttpHits]:

Client Http Requests / Http Hits

MaxBytes[cacheProtoClientHttpRequests-cacheHttpHits]: 1000000000 Colours[cacheProtoClientHttpRequests-cacheHttpHits]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheProtoClientHttpRequests-cacheHttpHits]: req/min YLegend[cacheProtoClientHttpRequests-cacheHttpHits]: requests/min Legend1[cacheProtoClientHttpRequests-cacheHttpHits]: cacheProtoClientHttpRequests LegendI[cacheProtoClientHttpRequests-cacheHttpHits]: all Legend2[cacheProtoClientHttpRequests-cacheHttpHits]: cacheHttpHits LegendO[cacheProtoClientHttpRequests-cacheHttpHits]: hit Options[cacheProtoClientHttpRequests-cacheHttpHits]: nopercent Target[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: cacheCurrentFileDescrCnt&cacheCurrentUnusedFDescrCnt:public@127.0.0.1:3401 Title[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: File descriptors used/available PageTop[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]:

File descriptors used/available

MaxBytes[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: 1000000000 Colours[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: FDs YLegend[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: # of FDs Legend1[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: cacheCurrentFileDescrCnt LegendI[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: Used Legend2[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: cacheCurrentUnusedFDescrCnt LegendO[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: Available Options[cacheCurrentFileDescrCnt-cacheCurrentUnusedFDescrCnt]: gauge, nopercent Target[cacheMemUsage]: ( cacheMemUsage&cacheMemUsage:public@127.0.0.1:3401 > 0 ? cacheMemUsage&cacheMemUsage:public@127.0.0.1:3401 * 1024 : cacheMemUsage&cacheMemUsage:public@127.0.0.1:3401 * 1024 + 4294967296 ) Title[cacheMemUsage]: Memory Usage PageTop[cacheMemUsage]:

Memory Usage

MaxBytes[cacheMemUsage]: 10000000000 Colours[cacheMemUsage]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheMemUsage]: Bytes YLegend[cacheMemUsage]: Bytes Legend1[cacheMemUsage]: cacheMemUsage LegendI[cacheMemUsage]: Mem Usage Legend2[cacheMemUsage]: LegendO[cacheMemUsage]: Options[cacheMemUsage]: gauge, nopercent Target[cacheServerInKb-cacheServerOutKb]: cacheServerInKb&cacheServerOutKb:public@127.0.0.1:3401 Title[cacheServerInKb-cacheServerOutKb]: Server In/Out (KB/sec) PageTop[cacheServerInKb-cacheServerOutKb]:

Server In/Out (KB/sec)

MaxBytes[cacheServerInKb-cacheServerOutKb]: 1000000000 Colours[cacheServerInKb-cacheServerOutKb]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheServerInKb-cacheServerOutKb]: KB/sec YLegend[cacheServerInKb-cacheServerOutKb]: KB/sec Legend1[cacheServerInKb-cacheServerOutKb]: cacheServerInKb LegendI[cacheServerInKb-cacheServerOutKb]: In Legend2[cacheServerInKb-cacheServerOutKb]: cacheServerOutKb LegendO[cacheServerInKb-cacheServerOutKb]: Out Options[cacheServerInKb-cacheServerOutKb]: nopercent Target[cacheHttpInKb-cacheHttpOutKb]: cacheHttpInKb&cacheHttpOutKb:public@127.0.0.1:3401 Title[cacheHttpInKb-cacheHttpOutKb]: HTTP In/Out (KB/sec) PageTop[cacheHttpInKb-cacheHttpOutKb]:

HTTP In/Out (KB/sec)

MaxBytes[cacheHttpInKb-cacheHttpOutKb]: 1000000000 Colours[cacheHttpInKb-cacheHttpOutKb]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheHttpInKb-cacheHttpOutKb]: KB/sec YLegend[cacheHttpInKb-cacheHttpOutKb]: KB/sec Legend1[cacheHttpInKb-cacheHttpOutKb]: cacheHttpInKb LegendI[cacheHttpInKb-cacheHttpOutKb]: In Legend2[cacheHttpInKb-cacheHttpOutKb]: cacheHttpOutKb LegendO[cacheHttpInKb-cacheHttpOutKb]: Out Options[cacheHttpInKb-cacheHttpOutKb]: nopercent Target[cacheNumObjCount]: cacheNumObjCount&cacheNumObjCount:public@127.0.0.1:3401 Title[cacheNumObjCount]: Stored Objects PageTop[cacheNumObjCount]:

Stored Objects

MaxBytes[cacheNumObjCount]: 1000000000 Colours[cacheNumObjCount]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheNumObjCount]: Objects YLegend[cacheNumObjCount]: Objects Legend1[cacheNumObjCount]: cacheNumObjCount LegendI[cacheNumObjCount]: Stored Objects Legend2[cacheNumObjCount]: LegendO[cacheNumObjCount]: Options[cacheNumObjCount]: gauge, nopercent Target[cacheClients]: cacheClients&cacheClients:public@127.0.0.1:3401 Title[cacheClients]: Number Of Clients PageTop[cacheClients]:

Number Of Clients

MaxBytes[cacheClients]: 1000000000 Colours[cacheClients]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheClients]: Clients YLegend[cacheClients]: Clients Legend1[cacheClients]: cacheClients LegendI[cacheClients]: Number Of Clients Legend2[cacheClients]: LegendO[cacheClients]: Options[cacheClients]: gauge, nopercent Target[cacheDnsRequests-cacheDnsReplies]: cacheDnsRequests&cacheDnsReplies:public@127.0.0.1:3401 Title[cacheDnsRequests-cacheDnsReplies]: DNS Requests/Replies PageTop[cacheDnsRequests-cacheDnsReplies]:

DNS Requests/Replies

MaxBytes[cacheDnsRequests-cacheDnsReplies]: 1000000000 Colours[cacheDnsRequests-cacheDnsReplies]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheDnsRequests-cacheDnsReplies]: DNS Req/Rep YLegend[cacheDnsRequests-cacheDnsReplies]: Req/Rep Legend1[cacheDnsRequests-cacheDnsReplies]: cacheDnsRequests LegendI[cacheDnsRequests-cacheDnsReplies]: Requests Legend2[cacheDnsRequests-cacheDnsReplies]: cacheDnsReplies LegendO[cacheDnsRequests-cacheDnsReplies]: Replies Options[cacheDnsRequests-cacheDnsReplies]: gauge, nopercent Target[cacheIpEntries]: cacheIpEntries&cacheIpEntries:public@127.0.0.1:3401 Title[cacheIpEntries]: IP Cache Entries PageTop[cacheIpEntries]:

IP Cache Entries

MaxBytes[cacheIpEntries]: 1000000000 Colours[cacheIpEntries]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheIpEntries]: Entries YLegend[cacheIpEntries]: Entries Legend1[cacheIpEntries]: cacheIpEntries LegendI[cacheIpEntries]: IP Cache Entries Legend2[cacheIpEntries]: LegendO[cacheIpEntries]: Options[cacheIpEntries]: gauge, nopercent Target[cacheIpRequests-cacheIpHits]: cacheIpRequests&cacheIpHits:public@127.0.0.1:3401 Title[cacheIpRequests-cacheIpHits]: IP Cache requests/hits PageTop[cacheIpRequests-cacheIpHits]:

IP Cache requests/hits

MaxBytes[cacheIpRequests-cacheIpHits]: 1000000000 Colours[cacheIpRequests-cacheIpHits]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheIpRequests-cacheIpHits]: IP Cache requests/hits YLegend[cacheIpRequests-cacheIpHits]: Req/hit Legend1[cacheIpRequests-cacheIpHits]: cacheIpRequests LegendI[cacheIpRequests-cacheIpHits]: Requests Legend2[cacheIpRequests-cacheIpHits]: cacheIpHits LegendO[cacheIpRequests-cacheIpHits]: Hits Options[cacheIpRequests-cacheIpHits]: gauge, nopercent Target[cacheIpRequests-cacheIpMisses]: cacheIpRequests&cacheIpMisses:public@127.0.0.1:3401 Title[cacheIpRequests-cacheIpMisses]: IP Cache requests/misses PageTop[cacheIpRequests-cacheIpMisses]:

IP Cache requests/misses

MaxBytes[cacheIpRequests-cacheIpMisses]: 1000000000 Colours[cacheIpRequests-cacheIpMisses]: YELLOW#F9C000,RED#F90000,DARKGREEN#006600,VIOLET#FF00FF ShortLegend[cacheIpRequests-cacheIpMisses]: IP Cache requests/misses YLegend[cacheIpRequests-cacheIpMisses]: Req/miss Legend1[cacheIpRequests-cacheIpMisses]: cacheIpRequests LegendI[cacheIpRequests-cacheIpMisses]: Requests Legend2[cacheIpRequests-cacheIpMisses]: cacheIpMisses LegendO[cacheIpRequests-cacheIpMisses]: Misses Options[cacheIpRequests-cacheIpMisses]: gauge, nopercent ******************************************************************************** _BY: Pejman Moghadam_ _TAG: mrtg, squid_ _DATE: 2009-07-04 13:17:17_