Fellow Pluggers,
 
i was trying to configure to monitor my proxy server traffic with mrtg, my problem
is i received error response with snmp here is my configs
 
 
./configure --enable-snmp
 
acl snmpserver snmp_community public
snmp_port 3401
snmp_access allow snmpserver proxy.blah
snmp_access deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0
 
then i try snmpwalk to figure out if --enable-snmp flag is working
 
snmpwalk -p 3401 proxy.blah public .1.3.6.1.4.1.3495.1.1
 
then it reply with
 
 
enterprises.3495.1.1.1.0 = 65516
 enterprises.3495.1.1.2.0 = 3686398
enterprises.3495.1.1.3.0 = Timeticks: (76421321) 8 days, 20:16:53.21
 
meaning it's ok
 
 
mrtg.cfg
 
WorkDir: /var/www/html/mrtg
LoadMIBs: /etc/squid/mib.txt
 
MaxBytes[Proxy-hit]: 10000
 Target[proxy-hit]: cacheHttpHits&cacheClientHttpRequests:public@proxy
 Title[proxy-hit]: HTTP Hits
 PageTop[proxy-hit]: <H2>proxy Cache Statistics: HTTP Hits / Requests</H2>
 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-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@proxy
 Title[proxy-srvkbinout]: Cache Server Traffic In / Out
 PageTop[proxy-srvkbinout]: <H2>Cache Statistics: Server traffic volume (In/Out) </H2>
 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
 kMG[proxy-srvkbinout]: k,M,G,T
 kilo[proxy-srvkbinout]: 1024
 Options[proxy-srvkbinout]: nopercent, perminute
 
IF I TRY /usr/sbin/mrtg /var/www/html/mrtg/mrtg.cfg
 
 
I received Snmp Response:
 
   NoSuchName
  Blah Blah
 
Did i miss something Thanks in advance
I'm using redhat 7.2 with default kernel
 
 
 

Reply via email to