[linux] Squid & MRTG

Folkert van Heusden folkert op vanheusden.com
Vr Apr 25 15:33:07 CEST 2008


Hi,

Ik probeer squid performance statistiekjes te graphen met mrtg. Daarbij
ga ik uit van 't config-voorbeeld op
http://chrismiles.info/unix/mrtg/mrtg-squid.cfg
Run ik nu e.e.a. dan krijg ik echter fouten als:
Unknown SNMP var cacheServerRequests
 at /usr/bin/mrtg line 2207
Unknown SNMP var cacheServerRequests
 at /usr/bin/mrtg line 2207
Unknown SNMP var cacheUptime
 at /usr/bin/mrtg line 2207
Unknown SNMP var cacheSoftware
 at /usr/bin/mrtg line 2207
Unknown SNMP var cacheVersionId
 at /usr/bin/mrtg line 2207

Gedeelte van de config:
LoadMIBS: /usr/share/snmp/mibs/SQUID.txt

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

De mib-file bestaat:
mauer:/usr/local/nagios.check_commands# ls -l /usr/share/snmp/mibs/SQUID.txt
-rw-r--r-- 1 root root 27733 2007-12-02 20:02 /usr/share/snmp/mibs/SQUID.txt

Die cacheServerRequest bestaat ook (copy+paste):
        cacheServerRequests OBJECT-TYPE
                SYNTAX Integer32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        " All requests from the client for the cache server "
        ::= { cacheProtoAggregateStats 10 }

En ook Squid kent 'm:
mauer:/usr/local/nagios.check_commands# snmpwalk -v1 -c public -m /usr/share/snmp/mibs/SQUID.txt localhost:3401 .1.3.6.1.4.1.3495 | grep cacheServerRequests
SQUID-MIB::cacheServerRequests.0 = INTEGER: 1
(zoals je ziet heb ik ook gewoon contact met de squid proxy).

Ik draai:
mauer:/usr/local/nagios.check_commands# dpkg --list | grep -e squid -e mrtg
ii  squid                                2.6.19-1                               Internet object cache (WWW proxy cache)
ii  squid-common                         2.6.19-1                               Internet object cache (WWW proxy cache) - co
ii  mrtg                                 2.16.1-1                               multi router traffic grapher

Wie weet raad?


Folkert van Heusden

-- 

Multitail - gibkaja utilita po sledovaniju log-fajlov i vyvoda
kommand. Fil'trovanie, raskrašivanie, slijanie, vizual'noe sravnenie,
i t.d.  http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the Linux mailing list