Blame doc/mrtg-squid.txt

Packit 667938
MRTG-SQUID(1)                        mrtg                        MRTG-SQUID(1)
Packit 667938
Packit 667938
Packit 667938
Packit 667938
mrtg-squid - using mrtg to monitor Squid
Packit 667938
Packit 667938
D?DE?ES?SC?CR?RI?IP?PT?TI?IO?ON?N
Packit 667938
       Squid 2.3 knows SNMP and you can therefore use mrtg to monitor it quite
Packit 667938
       easily.
Packit 667938
Packit 667938
       I have made some modifications to mrtg which simplify this.  My work is
Packit 667938
       based on earlier modification made by: matija.grabnar@arnes.si and
Packit 667938
       kostas@nlanr.net.
Packit 667938
Packit 667938
M?MO?OD?DI?IF?FI?IC?CA?AT?TI?IO?ON?NS?S
Packit 667938
       I added new code for displaying correct units to the previous patches
Packit 667938
       "perminute" and "perhour" ("option" tokens), which allows other
Packit 667938
       measurement in addition to "persecond".
Packit 667938
Packit 667938
       Then I created a new option token "dorelpercent" which allows the
Packit 667938
       calculation of the percentage of IN-stream / OUT-stream on the fly and
Packit 667938
       then displays it on a fixed scale from 0% to 100%. For my requirements,
Packit 667938
       this does good work. Maybe someone wants a floating scale. It should
Packit 667938
       not be a problem to implement it, too (but give me an option to keep my
Packit 667938
       fixed scale). If IN-stream is always less than OUT-stream both lines
Packit 667938
       (OUT-stream and relative percent) are always displayed on top of IN-
Packit 667938
       stream bulk. Otherwise this option makes no sense. With this option you
Packit 667938
       can display hitrates, errorrates (for router monitoring: rel.
Packit 667938
       droprates) easily now.
Packit 667938
Packit 667938
       If you use this options please consider that you need a 5th
Packit 667938
       colourname/value pair in your Colours statements!
Packit 667938
Packit 667938
       Due to some discussion on this list, I have implemented two tokens too:
Packit 667938
Packit 667938
       "kilo" and "kMG"
Packit 667938
Packit 667938
       "kilo" should contain the value of k (1000 or 1024), where 1000 is the
Packit 667938
       default.
Packit 667938
Packit 667938
       "kMG" is a comma separated list of multiplier prefixes, used instead of
Packit 667938
       "", "k", "M", "G", "T" on the MRTG display. Leave the place free, if
Packit 667938
       you want no prefix.
Packit 667938
Packit 667938
       Also an incomplete list of OIDs for the new SQUID release is added.
Packit 667938
Packit 667938
       You may need to turn on snmp_port in squid.conf to as it is disabled by
Packit 667938
       default.
Packit 667938
Packit 667938
       I hope you enjoy it.
Packit 667938
Packit 667938
C?CO?ON?NF?FI?IG?G E?EX?XA?AM?MP?PL?LE?E
Packit 667938
       First load the squid mib
Packit 667938
Packit 667938
        LoadMIBs: /usr/share/squid/mib.txt
Packit 667938
Packit 667938
       You can measure responsetimes in ms and display it with MRTG correctly
Packit 667938
       with:
Packit 667938
Packit 667938
        kMG[measure-ms]: m,,k,M,G,T
Packit 667938
        short[measure-ms]: s
Packit 667938
Packit 667938
       You can display now MB/s as 1024*1024 B/s with:
Packit 667938
Packit 667938
        kilo[volume]: 1024
Packit 667938
Packit 667938
       Assuming you're not running squid's SNMP on the default snmp port, you
Packit 667938
       need to include a port number in your target line:
Packit 667938
Packit 667938
        Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@localhost:3401
Packit 667938
Packit 667938
       A sample config for squid:
Packit 667938
Packit 667938
        Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@proxy
Packit 667938
        Title[proxy-hit]: HTTP Hits
Packit 667938
        PageTop[proxy-hit]: 

proxy Cache Statistics: HTTP Hits / Requests

Packit 667938
        Suppress[proxy-hit]: y
Packit 667938
        LegendI[proxy-hit]:  HTTP hits
Packit 667938
        LegendO[proxy-hit]:  HTTP requests
Packit 667938
        Legend1[proxy-hit]:  HTTP hits
Packit 667938
        Legend2[proxy-hit]:  HTTP requests
Packit 667938
        YLegend[proxy-hit]: perminute
Packit 667938
        ShortLegend[proxy-hit]: req/min
Packit 667938
        Options[proxy-hit]: nopercent, perminute, dorelpercent
Packit 667938
Packit 667938
        Target[proxy-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@proxy
Packit 667938
        Title[proxy-srvkbinout]: Cache Server Traffic In / Out
Packit 667938
        PageTop[proxy-srvkbinout]: 

Cache Statistics: Server traffic volume (In/Out)

Packit 667938
        Suppress[proxy-srvkbinout]: y
Packit 667938
        LegendI[proxy-srvkbinout]:  Traffic In
Packit 667938
        LegendO[proxy-srvkbinout]:  Traffic Out
Packit 667938
        Legend1[proxy-srvkbinout]:  Traffic In
Packit 667938
        Legend2[proxy-srvkbinout]:  Traffic Out
Packit 667938
        YLegend[proxy-srvkbinout]: per minute
Packit 667938
        ShortLegend[proxy-srvkbinout]: b/min
Packit 667938
        kMG[proxy-srvkbinout]: k,M,G,T
Packit 667938
        kilo[proxy-srvkbinout]: 1024
Packit 667938
        Options[proxy-srvkbinout]: nopercent, perminute
Packit 667938
Packit 667938
A?AU?UT?TH?HO?OR?R
Packit 667938
       Andreas Papst <andreas.papst@univie.ac.at> Dirk-LXder Kreie
Packit 667938
       <deelkar@gmx.de> Chris Chiappa <chris+debian@chiappa.net>
Packit 667938
Packit 667938
Packit 667938
Packit 667938
2.17.7                            2018-07-13                     MRTG-SQUID(1)