Re: [squid-users] Need help

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Fri, 7 Mar 2008 08:53:56 +0530

pls add below lines /etc/squid/squid.conf file.

 snmp_port 3401
 acl snmppublic snmp_community public
 snmp_access allow snmppublic localhost
 snmp_access deny all
 snmp_incoming_address 0.0.0.0
 snmp_outgoing_address 0.0.0.0

then, restart squid.

and perform below commands.

[root@mail ~]# snmpwalk -m /etc/squid/mib.txt -v2c -c public
localhost:3401 .1.3.6.1.4.1.3495.1.1
SQUID-MIB::cacheSysVMsize.0 = INTEGER: 1692
SQUID-MIB::cacheSysStorage.0 = INTEGER: 37860
SQUID-MIB::cacheUptime.0 = Timeticks: (913871) 2:32:18.71

and

[root@mail ~]# snmpwalk -v2c -c public localhost:3401
.1.3.6.1.4.1.3495.1.1 SNMPv2-SMI:: enterprises.3495.1.1.1.0 = INTEGER:
1696
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 37860
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (914781) 2:32:27.81

thereafer add, create a mrtg-squid.cfg file by hand.

t think you can get it from below URL.

http://chrismiles.info/unix/mrtg/mrtg-squid.cfg

Okay, to bigin add below lines to mrtg-squid.cfg file

Target[cacheServerRequests]:
cacheServerRequests&cacheServerRequests:public@hostname:3401
MaxBytes[cacheServerRequests]: 10000000
Title[cacheServerRequests]: Server Requests @ hostname
Options[cacheServerRequests]: growright, nopercent
PageTop[cacheServerRequests]: <h2>Server Requests @ hostname</h2>
YLegend[cacheServerRequests]: requests/sec
ShortLegend[cacheServerRequests]: req/s
LegendI[cacheServerRequests]: Requests&nbsp;
LegendO[cacheServerRequests]:
Legend1[cacheServerRequests]: Requests
Legend2[cacheServerRequests]:

Target[cacheServerErrors]:
cacheServerErrors&cacheServerErrors:public@hostname:3401
MaxBytes[cacheServerErrors]: 10000000
Title[cacheServerErrors]: Server Errors @ hostname
Options[cacheServerErrors]: growright, nopercent
PageTop[cacheServerErrors]: <h2>Server Errors @ hostname</h2>
YLegend[cacheServerErrors]: errors/sec
ShortLegend[cacheServerErrors]: err/s
LegendI[cacheServerErrors]: Errors&nbsp;
LegendO[cacheServerErrors]:
Legend1[cacheServerErrors]: Errors
Legend2[cacheServerErrors]:

Target[cacheCpuUsage]: cacheCpuUsage&cacheCpuUsage:public@hostname:3401
MaxBytes[cacheCpuUsage]: 100
AbsMax[cacheCpuUsage]: 100
Title[cacheCpuUsage]: CPU Usage @ hostname
Options[cacheCpuUsage]: absolute, gauge, noinfo, growright, nopercent
Unscaled[cacheCpuUsage]: dwmy
PageTop[cacheCpuUsage]: <h2>CPU Usage @ hostname</h2>
YLegend[cacheCpuUsage]: usage %
ShortLegend[cacheCpuUsage]:%
LegendI[cacheCpuUsage]: CPU Usage&nbsp;
LegendO[cacheCpuUsage]:
Legend1[cacheCpuUsage]: CPU Usage
Legend2[cacheCpuUsage]:

pls change hostname, passsowrd and port number if nedded.

GOOD LUCK

-- 
Thank you
Indunil Jayasooriya
Received on Thu Mar 06 2008 - 20:24:02 MST

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT