<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Mrtg – Yeri Tiete</title>
    <link>https://yeri.be/tag/mrtg/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Sun, 13 Feb 2011 14:53:04 +0100</lastBuildDate>
    <atom:link href="https://yeri.be/tag/mrtg/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Bind mrtg stats</title>
      <link>https://yeri.be/bind-mrtg-stats/</link>
      <pubDate>Sun, 13 Feb 2011 14:53:04 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/bind-mrtg-stats/</guid>
      <description>&lt;p&gt;Because I couldn&amp;rsquo;t find any that worked.&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;img class=&#34;alignnone size-full wp-image-2551&#34; title=&#34;bind-day&#34; src=&#34;https://static.yeri.be/2011/02/bind-day.png&#34; alt=&#34;&#34; width=&#34;500&#34; height=&#34;135&#34; /&gt;&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;em&gt;(Dark blue: incoming queries, light blue: outgoing/recursive lookups)&lt;/em&gt;&lt;/p&gt;&#xA;mrtg.cfg sample:&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;&#34;&gt;# Bind&#xA;Title[bind]: Bind Queries&#xA;Target[bind]: `/etc/mrtg/bind-stats.sh`&#xA;PageTop[bind]: &amp;lt;H1&amp;gt; Bind queries per minute on vm1 &amp;lt;/H1&amp;gt;&#xA;Options[bind]: growright,pngdate,nobanner,gauge,nopercent,noinfo&#xA;MaxBytes[bind]: 50000&#xA;Ylegend[bind]: Queries/min&#xA;ShortLegend[bind]:  queries/min&#xA;LegendO[bind]: Incoming Bind queries per minute&#xA;LegendI[bind]: Outcoing Bind queries per minute&#xA;Legend2[bind]: Incoming Bind queries per minute&#xA;Legend1[bind]: Outcoing Bind queries per minute&lt;/pre&gt;&#xA;bind-stats.sh:&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;&#34;&gt;#!/bin/bash&#xA;# Bind MRTG stats&#xA;# by Yeri Tiete (Tuinslak) - 10/02/2011&#xA;# https://yeri.be&#xA;#&#xA;# mrtg.cfg sample:&#xA;################################################################################&#xA;#&#x9;#&#xA;#&#x9;# Bind&#xA;#&#x9;#&#xA;#&#x9;Title[bind]: Bind Queries&#xA;#&#x9;Target[bind]: `/etc/mrtg/bind-stats.sh`&#xA;#&#x9;PageTop[bind]: &amp;lt;H1&amp;gt; Bind queries per minute on vm1 &amp;lt;/H1&amp;gt;&#xA;#&#x9;Options[bind]: growright,pngdate,nobanner,gauge,nopercent,noinfo&#xA;#&#x9;MaxBytes[bind]: 50000&#xA;#&#x9;Ylegend[bind]: Queries/min&#xA;#&#x9;ShortLegend[bind]:  queries/min&#xA;#&#x9;LegendO[bind]: Incoming Bind queries per minute&#xA;#&#x9;LegendI[bind]: Outcoing Bind queries per minute&#xA;#&#x9;Legend2[bind]: Incoming Bind queries per minute&#xA;#&#x9;Legend1[bind]: Outcoing Bind queries per minute&#xA;################################################################################&#xA;&lt;h1 id=&#34;file-path-of-namedstats&#34;&gt;file path of named.stats&lt;/h1&gt;&#xA;&lt;p&gt;FILE=/var/log/named.stats&#xA;TMPFILE=/tmp/__dnsstats.txt&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Because I couldn&rsquo;t find any that worked.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-2551" title="bind-day" src="https://static.yeri.be/2011/02/bind-day.png" alt="" width="500" height="135" /></p>
<p style="text-align: center;"><em>(Dark blue: incoming queries, light blue: outgoing/recursive lookups)</em></p>
mrtg.cfg sample:
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;"># Bind
Title[bind]: Bind Queries
Target[bind]: `/etc/mrtg/bind-stats.sh`
PageTop[bind]: &lt;H1&gt; Bind queries per minute on vm1 &lt;/H1&gt;
Options[bind]: growright,pngdate,nobanner,gauge,nopercent,noinfo
MaxBytes[bind]: 50000
Ylegend[bind]: Queries/min
ShortLegend[bind]:  queries/min
LegendO[bind]: Incoming Bind queries per minute
LegendI[bind]: Outcoing Bind queries per minute
Legend2[bind]: Incoming Bind queries per minute
Legend1[bind]: Outcoing Bind queries per minute</pre>
bind-stats.sh:
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;">#!/bin/bash
# Bind MRTG stats
# by Yeri Tiete (Tuinslak) - 10/02/2011
# https://yeri.be
#
# mrtg.cfg sample:
################################################################################
#	#
#	# Bind
#	#
#	Title[bind]: Bind Queries
#	Target[bind]: `/etc/mrtg/bind-stats.sh`
#	PageTop[bind]: &lt;H1&gt; Bind queries per minute on vm1 &lt;/H1&gt;
#	Options[bind]: growright,pngdate,nobanner,gauge,nopercent,noinfo
#	MaxBytes[bind]: 50000
#	Ylegend[bind]: Queries/min
#	ShortLegend[bind]:  queries/min
#	LegendO[bind]: Incoming Bind queries per minute
#	LegendI[bind]: Outcoing Bind queries per minute
#	Legend2[bind]: Incoming Bind queries per minute
#	Legend1[bind]: Outcoing Bind queries per minute
################################################################################
<h1 id="file-path-of-namedstats">file path of named.stats</h1>
<p>FILE=/var/log/named.stats
TMPFILE=/tmp/__dnsstats.txt</p>
<h1 id="how-often-does-mrtg-run-for-me-its-every-10-mins">how often does mrtg run? for me it&rsquo;s every 10 mins</h1>
<p>TIME=10</p>
<h1 id="make-file-empty">make file empty</h1>
<p>echo /dev/null &gt; /var/log/named.stats</p>
<h1 id="generate-file">generate file</h1>
<p>/usr/sbin/rndc stats</p>
<h1 id="save-number-of-queries">save number of queries</h1>
<p>INNOW=<code>egrep &quot;[^I]QUERY&quot; $FILE | awk '{print $1 }'</code>
OUTNOW=<code>grep Outgoing $FILE -A 9 | sed '1,2d' | awk '{ SUM += $1} END { print SUM }'</code></p>
<h1 id="check-if-tmp-file-exists-and-insert-data-in-it-if-it-doesnt">check if tmp file exists and insert data in it if it doesnt</h1>
<h1 id="this-prevents-a-peak">this prevents a peak</h1>
<p>[ ! -e $TMPFILE ] &amp;&amp; echo $INNOW &gt; $TMPFILE &amp;&amp; echo $OUTNOW &gt;&gt; $TMPFILE</p>
<h1 id="get-old-data">get old data</h1>
<p>INOLD=<code>cat $TMPFILE | sed -n 1p</code>
OUTOLD=<code>cat $TMPFILE | sed -n 2p</code></p>
<h1 id="overwrite-old">overwrite old</h1>
<p>echo $INNOW &gt; $TMPFILE
echo $OUTNOW &gt;&gt; $TMPFILE</p>
<h1 id="calculate-to-get-difference">calculate (to get difference)</h1>
<p>INDIFF=$[ $INNOW-$INOLD ]
OUTDIFF=$[ $OUTNOW-$OUTOLD ]</p>
<h1 id="as-mrtg-runs-10--divide-by-10-to-get-per-minute">as mrtg runs */10 &gt; divide by 10 to get per minute</h1>
<p>INPERMIN=$[ $INDIFF/$TIME ]
OUTPERMIN=$[ $OUTDIFF/$TIME ]</p>
<h1 id="print-">print !</h1>
<p>echo $OUTPERMIN
echo $INPERMIN
echo
echo</pre>
Or download the file <a href="https://static.yeri.be/2011/02/bind-stats.sh.txt" target="_blank" rel="noopener noreferrer">riiiiiight here</a>.</p>
<p>Be sure the named.stats file gives this kind of output:</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;"># grep Outgoing /var/log/named.stats -A 9
++ Outgoing Queries ++
[View: default]
               64316 A
                   2 NS
                  22 SOA
                6945 PTR
                 892 MX
                1104 TXT
                3117 AAAA
                  22 SRV</pre>
<p>&hellip; for the outgoing queries, and &hellip;</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;"># grep QUERY /var/log/named.stats | awk '{print $1 }'
163143</pre>
<p>for the incoming queries.</p>
<p>Don&rsquo;t forget to</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 35px; border: 1px dashed #489e06;">chmod +x bind-stats.sh</pre>
<p>Live sample: <a href="http://vm1.rootspirit.com/mrtg/bind.html" target="_blank" rel="noopener noreferrer">vm1.rootspirit.com/mrtg/bind.html</a></p>
]]></content:encoded>
      <category>linux</category><category>software</category><category>www</category>
      <category>bind</category><category>dns</category><category>mrtg</category>
    </item>
    
    <item>
      <title>Squid MRTG stats</title>
      <link>https://yeri.be/squid-mrtg-stats/</link>
      <pubDate>Sat, 05 Feb 2011 00:20:03 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/squid-mrtg-stats/</guid>
      <description>&lt;p&gt;I talked about &lt;a href=&#34;https://yeri.be/mrtg/&#34;&gt;MRTG stats for Squid&lt;/a&gt; in the past but apparently forgot to include the .mib file.&lt;/p&gt;&#xA;&lt;p&gt;So, here it is.  Download &lt;a href=&#34;https://static.yeri.be/2011/01/squid.mib_.txt&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;this file&lt;/a&gt; and put it in /usr/share/squid/mib.txt.&lt;/p&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t quite remember where I found that mib file. Probably included with Squid on Gentoo or the world wide web&amp;hellip; But I couldn&amp;rsquo;t find it on Debian, so here it is.  And be sure to add these lines to your Squid config:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I talked about <a href="https://yeri.be/mrtg/">MRTG stats for Squid</a> in the past but apparently forgot to include the .mib file.</p>
<p>So, here it is.  Download <a href="https://static.yeri.be/2011/01/squid.mib_.txt" target="_blank" rel="noopener noreferrer">this file</a> and put it in /usr/share/squid/mib.txt.</p>
<p>I don&rsquo;t quite remember where I found that mib file. Probably included with Squid on Gentoo or the world wide web&hellip; But I couldn&rsquo;t find it on Debian, so here it is.  And be sure to add these lines to your Squid config:</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">acl snmppublic snmp_community public
snmp_port 3401
snmp_access allow snmppublic all</pre>
<p>This is what it should look like (low usage Squid):</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2011/02/mrtg.proxy-hit-day.png"><img class="alignnone size-full wp-image-2447" title="mrtg.proxy-hit-day" src="https://static.yeri.be/2011/02/mrtg.proxy-hit-day.png" alt="" width="500" height="135" /></a></p>
]]></content:encoded>
      <category>hardware</category><category>linux</category><category>misc</category><category>networking</category><category>software</category><category>www</category>
      <category>mrtg</category><category>snmp</category><category>squid</category><category>stats</category>
    </item>
    
    <item>
      <title>MRTG and network interfaces</title>
      <link>https://yeri.be/mrtg-and-network-interfaces/</link>
      <pubDate>Mon, 17 Jan 2011 15:09:54 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/mrtg-and-network-interfaces/</guid>
      <description>&lt;p&gt;I tend to restart OpenVPN a lot due to config changes. As a result, this brings quite some issues to &lt;a href=&#34;https://yeri.be/mrtg/&#34;&gt;MRTG&lt;/a&gt; (or more precisely, SNMP), due to the fact tun devices change of ID.&lt;/p&gt;&#xA;&lt;p&gt;A while back, I found a quick fix for this; rename the interface targets from their respective ID to their name:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;Target[eth0]: &lt;span style=&#34;color: #ff0000;&#34;&gt;2&lt;/span&gt;:public@localhost&lt;/pre&gt;&#xA;&lt;p&gt;becomes&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;Target[eth0]: &lt;span style=&#34;color: #ff0000;&#34;&gt;#eth0&lt;/span&gt;:public@localhost&lt;/pre&gt;&#xA;&lt;div&gt;&lt;/div&gt;&#xA;&lt;div&gt;For example:&lt;/div&gt;&#xA;&lt;div&gt;&lt;/div&gt;&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;&#xA;#&#xA;# Eth0 stats&#xA;#&#xA;Options[eth0]: growright, nobanner, pngdate, nopercent, noinfo&#xA;Target[eth0]: #eth0:public@localhost:&#xA;SetEnv[eth0]: MRTG_INT_DESCR=&#34;eth0&#34;&#xA;MaxBytes[eth0]: 1250000&#xA;Title[eth0]: Traffic Analysis for deng&#xA;PageTop[eth0]: &amp;#060;H1&gt;Traffic Analysis for deng (eth0)&amp;#060;/H1&gt;&#xA;#&#xA;# Eth1 stats&#xA;#&#xA;Options[eth1]: growright, nobanner, pngdate, nopercent, noinfo&#xA;Target[eth1]: #eth1:public@localhost:&#xA;SetEnv[eth1]: MRTG_INT_DESCR=&#34;eth1&#34;&#xA;MaxBytes[eth1]: 1250000&#xA;Title[eth1]: Traffic Analysis for deng&#xA;PageTop[eth1]: &amp;#060;H1&gt;Traffic Analysis for deng (eth1)&amp;#060;/H1&gt;&#xA;#&#xA;# tun0 stats&#xA;#&#xA;Options[tun0]: growright, nobanner, pngdate, nopercent, noinfo&#xA;Target[tun0]: #tun0:public@localhost:&#xA;SetEnv[tun0]: MRTG_INT_DESCR=&#34;tun0&#34;&#xA;MaxBytes[tun0]: 1250000&#xA;Title[tun0]: Traffic Analysis for deng&#xA;PageTop[tun0]: &amp;#060;H1&gt;Traffic Analysis for deng (tun0)&amp;#060;/H1&gt;&#xA;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>I tend to restart OpenVPN a lot due to config changes. As a result, this brings quite some issues to <a href="https://yeri.be/mrtg/">MRTG</a> (or more precisely, SNMP), due to the fact tun devices change of ID.</p>
<p>A while back, I found a quick fix for this; rename the interface targets from their respective ID to their name:</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">Target[eth0]: <span style="color: #ff0000;">2</span>:public@localhost</pre>
<p>becomes</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">Target[eth0]: <span style="color: #ff0000;">#eth0</span>:public@localhost</pre>
<div></div>
<div>For example:</div>
<div></div>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">
#
# Eth0 stats
#
Options[eth0]: growright, nobanner, pngdate, nopercent, noinfo
Target[eth0]: #eth0:public@localhost:
SetEnv[eth0]: MRTG_INT_DESCR="eth0"
MaxBytes[eth0]: 1250000
Title[eth0]: Traffic Analysis for deng
PageTop[eth0]: &#060;H1>Traffic Analysis for deng (eth0)&#060;/H1>
#
# Eth1 stats
#
Options[eth1]: growright, nobanner, pngdate, nopercent, noinfo
Target[eth1]: #eth1:public@localhost:
SetEnv[eth1]: MRTG_INT_DESCR="eth1"
MaxBytes[eth1]: 1250000
Title[eth1]: Traffic Analysis for deng
PageTop[eth1]: &#060;H1>Traffic Analysis for deng (eth1)&#060;/H1>
#
# tun0 stats
#
Options[tun0]: growright, nobanner, pngdate, nopercent, noinfo
Target[tun0]: #tun0:public@localhost:
SetEnv[tun0]: MRTG_INT_DESCR="tun0"
MaxBytes[tun0]: 1250000
Title[tun0]: Traffic Analysis for deng
PageTop[tun0]: &#060;H1>Traffic Analysis for deng (tun0)&#060;/H1>
</pre>
]]></content:encoded>
      <category>hardware</category><category>linux</category><category>misc</category><category>networking</category><category>software</category><category>www</category>
      <category>mrtg</category><category>snmp</category><category>stats</category>
    </item>
    
    <item>
      <title>iRail slashdot effect</title>
      <link>https://yeri.be/irail-slashdot-effect/</link>
      <pubDate>Sun, 20 Jun 2010 00:15:18 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/irail-slashdot-effect/</guid>
      <description>&lt;p&gt;Only because stats are pretty awesome. The effects of &lt;a href=&#34;https://yeri.be/stopping-irail-be/&#34;&gt;my media attention&lt;/a&gt; a few days ago. I&amp;rsquo;ll give some more info than what &lt;a href=&#34;http://bvlg.blogspot.com/2010/06/nmbs-haalt-irailbe-offline.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;can be seen here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;And pretty happy I set up my &lt;a href=&#34;https://yeri.be/tag/nginx/&#34;&gt;nginx caching&lt;/a&gt; up a few weeks ago.&lt;/p&gt;&#xA;&lt;p&gt;MRTG traffic stats on &lt;a href=&#34;https://web.archive.org/web/20110213161611/http://vm1.rootspirit.com:80/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;vm1&lt;/a&gt;, my nginx caching server, of the first 2 days (only major traffic source is this blog):&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;a href=&#34;https://static.yeri.be/2010/06/vm1_eth0_1.png&#34;&gt;&lt;img class=&#34;size-full wp-image-1565 aligncenter&#34; title=&#34;vm1 mrtg traffic stats&#34; src=&#34;https://static.yeri.be/2010/06/vm1_eth0_1.png&#34; alt=&#34;&#34; width=&#34;500&#34; height=&#34;135&#34;/&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Top referrers (though not 100% accurate):&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Only because stats are pretty awesome. The effects of <a href="https://yeri.be/stopping-irail-be/">my media attention</a> a few days ago. I&rsquo;ll give some more info than what <a href="http://bvlg.blogspot.com/2010/06/nmbs-haalt-irailbe-offline.html" target="_blank" rel="noopener noreferrer">can be seen here</a>.</p>
<p>And pretty happy I set up my <a href="https://yeri.be/tag/nginx/">nginx caching</a> up a few weeks ago.</p>
<p>MRTG traffic stats on <a href="https://web.archive.org/web/20110213161611/http://vm1.rootspirit.com:80/" target="_blank" rel="noopener noreferrer">vm1</a>, my nginx caching server, of the first 2 days (only major traffic source is this blog):</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2010/06/vm1_eth0_1.png"><img class="size-full wp-image-1565 aligncenter" title="vm1 mrtg traffic stats" src="https://static.yeri.be/2010/06/vm1_eth0_1.png" alt="" width="500" height="135"/></a></p>
<p>Top referrers (though not 100% accurate):</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2010/06/referrers.png"><img class="size-full wp-image-1566 aligncenter" title="referrers" src="https://static.yeri.be/2010/06/referrers.png" alt="" width="585" height="139"/></a></p>
<p>Website hits:</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2010/06/peak_visitors.png"><img class="size-full wp-image-1570 aligncenter" title="peak visitors" src="https://static.yeri.be/2010/06/peak_visitors.png" alt="" width="489" height="188"/></a></p>
<p>Top posts last few days:</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2010/06/top_posts.png"><img class="size-full wp-image-1572 aligncenter" title="top posts" src="https://static.yeri.be/2010/06/top_posts.png" alt="" width="571" height="155"/></a></p>
<p style="text-align: left;">Flickr hits last few days:</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2010/06/flickr_hits.png"><img class="size-full wp-image-1577 aligncenter" title="flickr hits" src="https://static.yeri.be/2010/06/flickr_hits.png" alt="" width="585" height="210"/></a></p>
<p style="text-align: left;">Screenshots are all a few days old by the way.</p>
<p style="text-align: left;">This, and a bunch of other cool stats from Google Analytics. :)</p>
<p style="text-align: left;">Oh, and also, visits on iRail.be from the NMBS/SNCB network starting Sept 1 2008:</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2010/06/irail_NMBS.png"><img class="alignnone size-large wp-image-1586" title="NMBS / SNCB visits for iRail" src="https://static.yeri.be/2010/06/irail_NMBS-1024x438.png" alt="" width="560" height="239"/></a></p>
<p style="text-align: left;"></p>
]]></content:encoded>
      <category>linux</category><category>networking</category><category>software</category><category>irail</category><category>www</category>
      <category>media</category><category>mrtg</category><category>nmbs</category><category>slashdot</category><category>sncb</category>
    </item>
    
    <item>
      <title>MRTG</title>
      <link>https://yeri.be/mrtg/</link>
      <pubDate>Wed, 18 Nov 2009 17:14:57 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/mrtg/</guid>
      <description>&lt;p&gt;As I often have people asking for the files I use to make my pretty MRTG graphs; I&amp;rsquo;ll publish them here.&lt;/p&gt;&#xA;&lt;p&gt;Here are some examples:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://web.archive.org/web/20100712200524/http://mrtg.rootspirit.com:80/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Zero&lt;/a&gt; - &lt;a href=&#34;http://one.rootspirit.com/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;One&lt;/a&gt; - &lt;a href=&#34;http://four.rootspirit.com/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Four&lt;/a&gt; - &lt;a href=&#34;http://vm1.rootspirit.com/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;vm1&lt;/a&gt; - &lt;a href=&#34;http://home.tiete.be/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Sauron&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The config files:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://static.yeri.be/2009/11/sauron.tar&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Sauron&lt;/a&gt; (including Squid stats),&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://static.yeri.be/2009/11/zero.tar&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Zero&lt;/a&gt; (including fan stats).&lt;/p&gt;&#xA;&lt;p&gt;List of files included:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;indexmaker; simple script (included with MRTG) to generate a simple index file with all the graphs&lt;/li&gt;&#xA;&lt;li&gt;snmp-if.sh; will show you the IDs of the interfaces on the server/pc. These IDs have to be edited in the mrtg.cfg file; e.g.:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Target[eth0]: &lt;span style=&#34;color: #ff0000;&#34;&gt;2&lt;/span&gt;:public@localhost:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>As I often have people asking for the files I use to make my pretty MRTG graphs; I&rsquo;ll publish them here.</p>
<p>Here are some examples:</p>
<p><a href="https://web.archive.org/web/20100712200524/http://mrtg.rootspirit.com:80/" target="_blank" rel="noopener noreferrer">Zero</a> - <a href="http://one.rootspirit.com/mrtg/" target="_blank" rel="noopener noreferrer">One</a> - <a href="http://four.rootspirit.com/mrtg/" target="_blank" rel="noopener noreferrer">Four</a> - <a href="http://vm1.rootspirit.com/mrtg/" target="_blank" rel="noopener noreferrer">vm1</a> - <a href="http://home.tiete.be/mrtg/" target="_blank" rel="noopener noreferrer">Sauron</a></p>
<p>The config files:</p>
<p><a href="https://static.yeri.be/2009/11/sauron.tar" target="_blank" rel="noopener noreferrer">Sauron</a> (including Squid stats),</p>
<p><a href="https://static.yeri.be/2009/11/zero.tar" target="_blank" rel="noopener noreferrer">Zero</a> (including fan stats).</p>
<p>List of files included:</p>
<ul>
<li>indexmaker; simple script (included with MRTG) to generate a simple index file with all the graphs</li>
<li>snmp-if.sh; will show you the IDs of the interfaces on the server/pc. These IDs have to be edited in the mrtg.cfg file; e.g.:</li>
</ul>
<p>Target[eth0]: <span style="color: #ff0000;">2</span>:public@localhost:</p>
<p>Make sure 2 is indeed the ID of eth0. Be aware that virtual interfaces, like the TUN/TAP interfaces (using by openVPN for example), can change ID each time they are restarted/rebooted.</p>
<ul>
<li>mrtg.cfg; check the config file as an example.</li></ul>
<li>mrtg-&lt;xyz&gt;.sh; bunch of files to generate some data. Not all of  those still work, but I haven't deleted them yet in case. See the config to check those I'm using.
</li>
<li>
<p>mrtg._1 and mrtg.ok can be deleted/ignores. Those files are generated by MRTG and I was to lazy to remove them. :(</p>
</li>
<p>Some day, I&rsquo;ll write a decent howto, but for now, you&rsquo;ll have to do with this.</p>
<p>If there&rsquo;s any question, just leave a comment.</p>
]]></content:encoded>
      <category>hardware</category><category>misc</category><category>networking</category><category>software</category><category>www</category>
      <category>linux</category><category>ubuntu</category><category>debian</category><category>gentoo</category><category>mrtg</category><category>stats</category>
    </item>
    
  </channel>
</rss>
