<?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>Stats – Yeri Tiete</title>
    <link>https://yeri.be/tag/stats/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Sat, 05 Feb 2011 00:20:03 +0100</lastBuildDate>
    <atom:link href="https://yeri.be/tag/stats/index.xml" rel="self" type="application/rss+xml" />
    
    <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>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>
    
    <item>
      <title>Blog stats</title>
      <link>https://yeri.be/blog-stats/</link>
      <pubDate>Wed, 03 Sep 2008 02:25:41 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/blog-stats/</guid>
      <description>&lt;p&gt;Well, seems like Firefox is the most popular browser visiting this site. And on 2nd place.. Safari?! Who on earth uses Safari? Oh, but I guess mobile device, such as the iPhone &amp;amp; Symbian use webkit/Safari-like browser.&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;a href=&#34;https://static.yeri.be/2008/09/googleanalytics.png&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;img class=&#34;alignnone size-medium wp-image-420&#34; title=&#34;Tuinslak&#39;s Browser stats&#34; src=&#34;https://static.yeri.be/2008/09/googleanalytics-300x75.png&#34; alt=&#34;&#34; width=&#34;300&#34; height=&#34;75&#34; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Well, let&amp;rsquo;s see if &lt;a href=&#34;http://www.google.com/chrome&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Google Chrome&lt;/a&gt; gets in that list. If only they&amp;rsquo;d release it for other OS&amp;rsquo;es too&amp;hellip; :( Seems like good ol&amp;rsquo; Windows isn&amp;rsquo;t that popular anymore.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Well, seems like Firefox is the most popular browser visiting this site. And on 2nd place.. Safari?! Who on earth uses Safari? Oh, but I guess mobile device, such as the iPhone &amp; Symbian use webkit/Safari-like browser.</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/googleanalytics.png" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-420" title="Tuinslak's Browser stats" src="https://static.yeri.be/2008/09/googleanalytics-300x75.png" alt="" width="300" height="75" /></a></p>
<p>Well, let&rsquo;s see if <a href="http://www.google.com/chrome" target="_blank" rel="noopener">Google Chrome</a> gets in that list. If only they&rsquo;d release it for other OS&rsquo;es too&hellip; :( Seems like good ol&rsquo; Windows isn&rsquo;t that popular anymore.</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/osstats.png" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-424" title="osstats" src="https://static.yeri.be/2008/09/osstats-300x75.png" alt="" width="300" height="75" /></a></p>
]]></content:encoded>
      <category>google</category><category>misc</category>
      <category>analytics</category><category>blog</category><category>chrome</category><category>stats</category>
    </item>
    
    <item>
      <title>Wordpress stats</title>
      <link>https://yeri.be/wordpress-stats/</link>
      <pubDate>Sat, 23 Aug 2008 17:25:42 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/wordpress-stats/</guid>
      <description>&lt;p&gt;Took me a while to figure out what went wrong.&lt;/p&gt;&#xA;&lt;p&gt;With the new Firefox (v3) and the wordpress update, I was no longer able to see my &lt;a href=&#34;http://wordpress.org/extend/plugins/stats/&#34; target=&#34;_blank&#34;&gt;Wordpress stats&lt;/a&gt; on my dashboard.&lt;/p&gt;&#xA;&lt;p&gt;Every (Wordpress) login attempt, to see the stats, resulted in&amp;hellip; Well nothing. I just kept getting back to the login page. No error.&lt;/p&gt;&#xA;&lt;p&gt;Actually, I have &amp;ldquo;third-party cookies disabled&amp;rdquo; on all my browsers; I don&amp;rsquo;t like to have cookies from sites I do not visit. And this was the cause of the problem.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Took me a while to figure out what went wrong.</p>
<p>With the new Firefox (v3) and the wordpress update, I was no longer able to see my <a href="http://wordpress.org/extend/plugins/stats/" target="_blank">Wordpress stats</a> on my dashboard.</p>
<p>Every (Wordpress) login attempt, to see the stats, resulted in&hellip; Well nothing. I just kept getting back to the login page. No error.</p>
<p>Actually, I have &ldquo;third-party cookies disabled&rdquo; on all my browsers; I don&rsquo;t like to have cookies from sites I do not visit. And this was the cause of the problem.</p>
<p>Simply add an exception for &ldquo;*.wordpress.com&rdquo; and you&rsquo;ll be able to view all your stats again. :)</p>
]]></content:encoded>
      <category>errors</category><category>software</category><category>www</category>
      <category>stats</category><category>wordpress</category>
    </item>
    
  </channel>
</rss>
