™.. .IX Title "MRTG-SQUID 1" MRTG-SQUID - Online Linux Manual PageSection : 1
Updated : 2008-05-16
Source : 2.16.2
Note : mrtg

NAMEmrtg−squid − using mrtg to monitor Squid

DESCRIPTION.IX Header "DESCRIPTION" Squid 2.3 knows SNMP and you can therefore use mrtg to monitor it quite easily. I have made some modifications to mrtg which simplify this. My work is based on earlier modification made by: matija.grabnar@arnes.si and kostas@nlanr.net.

MODIFICATIONS.IX Header "MODIFICATIONS" I added new code for displaying correct units to the previous patches perminute and perhour (option tokens), which allows other measurement in addition to persecond. Then I created a new option token dorelpercent which allows the calculation of the percentage of IN-stream / OUT-stream on the fly and then displays it on a fixed scale from 0% to 100%. For my requirements, this does good work. Maybe someone wants a floating scale. It should not be a problem to implement it, too (but give me an option to keep my fixed scale). If IN-stream is always less than OUT-stream both lines (OUT−stream and relative percent) are always displayed on top of IN-stream bulk. Otherwise this option makes no sense. With this option you can display hitrates, errorrates (for router monitoring: rel. droprates) easily now. If you use this options please consider that you need a 5th colourname/value pair in your Colours statements! Due to some discussion on this list, I have implemented two tokens too: kilo and kMG kilo should contain the value of k (1000 or 1024), where 1000 is the default. kMG is a comma separated list of multiplier prefixes, used instead of ", k, M, G, T" on the MRTG display. Leave the place free, if you want no prefix. Also an incomplete list of OIDs for the new SQUID release is added. I hope you enjoy it.

CONFIG EXAMPLE.IX Header "CONFIG EXAMPLE" You can measure responsetimes in ms and display it with MRTG correctly with: ​ kMG[measure−ms]: m,,k,M,G,T ​ short[measure−ms]: s You can display now MB/s as 1024*1024 B/s with: ​ kilo[volume]: 1024 A sample config for squid: ​ Target[proxy−hit]: cacheHttpHits&cacheProtoClientHttpRequests: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

AUTHOR.IX Header "AUTHOR" Andreas Papst <andreas.papst@univie.ac.at> Dirk−Lüder Kreie <deelkar@gmx.de>
0
Johanes Gumabo
Data Size   :   10,512 byte
man-mrtg-squid.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 200,386
Visitor ID   :     :  
Visitor IP   :   3.145.186.132   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|mrtg-squid.1|44/45|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|mrtg-squid.1|44/45|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|mrtg-squid.1|49|br══─}─══|'br══─}─══ )         (htmlprn|149|mrtg-squid.1|49|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|mrtg-squid.1|55/56|\nF|.if \nF ══─{─══. de IX )         (rof_unit_scale_px|41|mrtg-squid.1|55/56|F|.if \nF ══─{─══. de IX )         (rof_if|19|mrtg-squid.1|55/56|\nF|.if \nF ══─{─══. de IX )         (htmlprn|149|mrtg-squid.1|55/56|.if \nF ══─{─══. de IX|.if \nF ══─{─══. de IX )         (rof_escape_sequence|91|mrtg-squid.1|57|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|mrtg-squid.1|61|══─}─══|.══─}─══ )         (htmlprn|149|mrtg-squid.1|61|.══─}─══ |.══─}─══ )         (parse_manual_page_|249|mrtg-squid.1|131|IX|.IX Title "MRTG-SQUID 1" )         (parse_manual_page_|249|mrtg-squid.1|136|IX|.IX Header "DESCRIPTION" )         (parse_manual_page_|249|mrtg-squid.1|144|IX|.IX Header "MODIFICATIONS" )         (parse_manual_page_|249|mrtg-squid.1|180|IX|.IX Header "CONFIG EXAMPLE" )         (parse_manual_page_|249|mrtg-squid.1|227|IX|.IX Header "AUTHOR" )