<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PSEiBlog</title>
	<atom:link href="http://www.pseiko.nl/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pseiko.nl/blog</link>
	<description>Sooo... It's a blog you say...?</description>
	<lastBuildDate>Wed, 04 Aug 2010 13:58:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Suicidal Bunny Rabbit</title>
		<link>http://www.pseiko.nl/blog/410/suicidal-bunny-rabbit</link>
		<comments>http://www.pseiko.nl/blog/410/suicidal-bunny-rabbit#comments</comments>
		<pubDate>Wed, 04 Aug 2010 13:58:44 +0000</pubDate>
		<dc:creator>Farhaz</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[bunny]]></category>
		<category><![CDATA[hehe]]></category>
		<category><![CDATA[rabbit]]></category>
		<category><![CDATA[suicidal]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=410</guid>
		<description><![CDATA[Hehe More after the break]]></description>
			<content:encoded><![CDATA[<p>Hehe</p>
<p><a href="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/5.jpg" rel="lightbox[410]"><img class="aligncenter size-full wp-image-415" title="5" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/5.jpg" alt="" width="650" height="1592" /></a></p>
<p>More after the break</p>
<p><span id="more-410"></span><a href="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/2.jpg" rel="lightbox[410]"><img class="aligncenter size-full wp-image-412" title="2" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/2.jpg" alt="" width="650" height="1780" /></a><a href="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/3.jpg" rel="lightbox[410]"><img class="aligncenter size-full wp-image-413" title="3" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/3.jpg" alt="" width="650" height="1890" /></a><a href="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/4.jpg" rel="lightbox[410]"><img class="aligncenter size-full wp-image-414" title="4" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/4.jpg" alt="" width="650" height="1794" /></a><a href="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/5.jpg" rel="lightbox[410]"><br />
</a><a href="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/1.jpg" rel="lightbox[410]"><img class="aligncenter size-full wp-image-411" title="1" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/08/1.jpg" alt="" width="650" height="1780" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/410/suicidal-bunny-rabbit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new discovery :)</title>
		<link>http://www.pseiko.nl/blog/404/my-new-discovery</link>
		<comments>http://www.pseiko.nl/blog/404/my-new-discovery#comments</comments>
		<pubDate>Tue, 04 May 2010 11:10:25 +0000</pubDate>
		<dc:creator>Farhaz</dc:creator>
				<category><![CDATA[Computer & Technology Related]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=404</guid>
		<description><![CDATA[NAS is the way to go&#8230; Local storage is sooo 2008 :p My new toy: http://www.synology.com/enu/products/DS410j/index.php On www.synology.com you can find more info about the NAS&#8217; and the OS on it. Wil try to post a review in a few weeks.]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/mxpL7kVBq9E&amp;hl=zh_TW&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/mxpL7kVBq9E&amp;hl=zh_TW&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>NAS is the way to go&#8230; Local storage is sooo 2008 :p<br />
My new toy: <a title="http://www.synology.com/enu/products/DS410j/index.php" href="http://www.synology.com/enu/products/DS410j/index.php" target="_blank">http://www.synology.com/enu/products/DS410j/index.php</a></p>
<p>On <a title="synology.com" href="http://www.synology.com" target="_blank">www.synology.com</a> you can find more info about the NAS&#8217; and the OS on it. Wil try to post a review in a few weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/404/my-new-discovery/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kick-ass game art :)</title>
		<link>http://www.pseiko.nl/blog/395/kick-ass-game-art</link>
		<comments>http://www.pseiko.nl/blog/395/kick-ass-game-art#comments</comments>
		<pubDate>Mon, 08 Feb 2010 06:21:28 +0000</pubDate>
		<dc:creator>Farhaz</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Art]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[mortal kombat]]></category>
		<category><![CDATA[pacman]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=395</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[
<a href='http://www.pseiko.nl/blog/395/kick-ass-game-art/mk1' title='mk1'><img width="150" height="150" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/02/mk1-150x150.jpg" class="attachment-thumbnail" alt="mk1" title="mk1" /></a>
<a href='http://www.pseiko.nl/blog/395/kick-ass-game-art/mk3' title='mk3'><img width="150" height="150" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/02/mk3-150x150.jpg" class="attachment-thumbnail" alt="mk3" title="mk3" /></a>
<a href='http://www.pseiko.nl/blog/395/kick-ass-game-art/mk4' title='mk4'><img width="150" height="150" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/02/mk4-150x150.jpg" class="attachment-thumbnail" alt="mk4" title="mk4" /></a>
<a href='http://www.pseiko.nl/blog/395/kick-ass-game-art/mk21' title='mk21'><img width="150" height="150" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/02/mk21-150x150.jpg" class="attachment-thumbnail" alt="mk21" title="mk21" /></a>
<a href='http://www.pseiko.nl/blog/395/kick-ass-game-art/pac_samurai' title='pac_samurai'><img width="150" height="150" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/02/pac_samurai-150x150.jpg" class="attachment-thumbnail" alt="pac_samurai" title="pac_samurai" /></a>
<a href='http://www.pseiko.nl/blog/395/kick-ass-game-art/rw6i6' title='rw6i6'><img width="150" height="150" src="http://www.pseiko.nl/blog/wp-content/uploads/2010/02/rw6i6-150x150.jpg" class="attachment-thumbnail" alt="rw6i6" title="rw6i6" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/395/kick-ass-game-art/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatically remove duplicate IP&#8217;s in Iptables</title>
		<link>http://www.pseiko.nl/blog/375/automatically-remove-duplicate-ips-in-iptables</link>
		<comments>http://www.pseiko.nl/blog/375/automatically-remove-duplicate-ips-in-iptables#comments</comments>
		<pubDate>Wed, 09 Dec 2009 15:01:58 +0000</pubDate>
		<dc:creator>Remco</dc:creator>
				<category><![CDATA[Computer & Technology Related]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[Iptables]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=375</guid>
		<description><![CDATA[Many scripts like my Persistent Iptables bans from Fail2Ban script add a bunch of DROP statements to Iptables chains. I noticed that quite a lot of people ask questions on mailing lists and forums requesting a method to automatically remove any duplicate IP&#8217;s that might exist within a given chain. Well, that&#8217;s quite easy to [...]]]></description>
			<content:encoded><![CDATA[<p>Many scripts like my <a href="http://www.pseiko.nl/blog/288/persistent-iptables-bans-from-fail2ban">Persistent Iptables bans from Fail2Ban script</a> add a bunch of DROP statements to Iptables chains.</p>
<p>I noticed that quite a lot of people ask questions on mailing lists and forums requesting a method to automatically remove any duplicate IP&#8217;s that might exist within a given chain.</p>
<p>Well, that&#8217;s quite easy to accomplish really, just run this little PHP script I created as root, and your Iptables is once again clean as a whistle!</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Configuration
 */</span>
<span style="color: #000088;">$chain</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Blocklist&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$safelist</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;x.x.x.x&quot;</span>
                 <span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;y.y.y.y&quot;</span>
                 <span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;z.z.z.z&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">shell_exec</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'iptables -S '</span><span style="color: #339933;">.</span><span style="color: #000088;">$chain</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$iparr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$j</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ref</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>sizeof<span style="color: #009900;">&#40;</span><span style="color: #000088;">$iparr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr_count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$iparr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$ref</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$iparr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$j</span><span style="color: #339933;">++;</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">sort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>sizeof<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$ref</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$ref</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stristr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;0.0.0.0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$ip</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">2</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #000088;">$safelist</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Duplicate IP found: <span style="color: #006699; font-weight: bold;">$ip</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #990000;">shell_exec</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'iptables -D '</span><span style="color: #339933;">.</span><span style="color: #000088;">$chain</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' -s '</span><span style="color: #339933;">.</span><span style="color: #000088;">$ip</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' -j DROP'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #000088;">$ref</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">array_search</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/375/automatically-remove-duplicate-ips-in-iptables/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Countering PHPMyAdmin scanners with Fail2Ban</title>
		<link>http://www.pseiko.nl/blog/367/countering-phpmyadmin-scanners-with-fail2ban</link>
		<comments>http://www.pseiko.nl/blog/367/countering-phpmyadmin-scanners-with-fail2ban#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:44:40 +0000</pubDate>
		<dc:creator>Remco</dc:creator>
				<category><![CDATA[Computer & Technology Related]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fail2Ban]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=367</guid>
		<description><![CDATA[While examining my webserver statistics, I noticed that quite a lot 404&#8242;s are being served on most of my domains to scan bots that are trying to find exploits in possible running PHPMyAdmin configurations. Though harmless if you keep a clean ship with a decently configured PHPMyAdmin and the latest updates like I do, I [...]]]></description>
			<content:encoded><![CDATA[<p>While examining my webserver statistics, I noticed that quite a lot 404&#8242;s are being served on most of my domains to scan bots that are trying to find exploits in possible running PHPMyAdmin configurations.<br />
Though harmless if you keep a clean ship with a decently configured PHPMyAdmin and the latest updates like I do, I still decided I couldn&#8217;t let this behaviour unanswered. So I took action, and wrote a small fail2ban filter that permanently drops all traffic from the IP addresses these scans originate from, like I do with every address that misbehaves in any way.</p>
<p>The regex used won&#8217;t capture all attempts, but with my configuration only 1 hit is enough to get you banned (the scripts these scans call are main.php and config.inc.php, which aren&#8217;t to be called directly, especially not when they fail with a 404 like these), and all scanning attempts I&#8217;ve seen so far cycle through at least 20 different combinations.</p>
<p>Well, enough talk, here is the filter.d file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Fail2Ban configuration file
</span><span style="color: #666666; font-style: italic;">#
</span><span style="color: #666666; font-style: italic;"># Author: Remco Overdijk
</span><span style="color: #666666; font-style: italic;">#
</span><span style="color: #666666; font-style: italic;"># $Revision: 4 $
</span><span style="color: #666666; font-style: italic;">#
</span>
<span style="color: #009900;">&#91;</span>Definition<span style="color: #009900;">&#93;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Option:  failregex
</span><span style="color: #666666; font-style: italic;"># Notes.:  regex to match the 404'ed PMA file in the logfile. The
</span><span style="color: #666666; font-style: italic;">#          host must be matched by a group named &quot;host&quot;. The tag &quot;&lt;HOST&gt;&quot; can
</span><span style="color: #666666; font-style: italic;">#          be used for standard IP/hostname matching and is only an alias for
</span><span style="color: #666666; font-style: italic;">#          (?:::f{4,6}:)?(?P&lt;host&gt;\S+)
</span><span style="color: #666666; font-style: italic;"># Values:  TEXT
</span><span style="color: #666666; font-style: italic;">#
</span>failregex <span style="color: #339933;">=</span> <span style="color: #339933;">&lt;</span>HOST<span style="color: #339933;">&gt;</span> <span style="color: #339933;">-.*</span><span style="color: #0000ff;">&quot;GET .*(php|pma|PMA|p/m/a|db|sql|admin).*/(config/config\.inc|main)\.php.*&quot;</span><span style="color: #339933;">.*</span><span style="color:#800080;">404.</span><span style="color: #339933;">*</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Option:  ignoreregex
</span><span style="color: #666666; font-style: italic;"># Notes.:  regex to ignore. If this regex matches, the line is ignored.
</span><span style="color: #666666; font-style: italic;"># Values:  TEXT
</span><span style="color: #666666; font-style: italic;">#
</span>ignoreregex <span style="color: #339933;">=</span></pre></div></div>

<p>And this is of course accompanied by a bit in jail.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>apache<span style="color: #339933;">-</span>pma<span style="color: #009900;">&#93;</span>
&nbsp;
enabled <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span>
filter <span style="color: #339933;">=</span> apache<span style="color: #339933;">-</span>pma
action <span style="color: #339933;">=</span> iptables<span style="color: #339933;">-</span>allports<span style="color: #009900;">&#91;</span>name<span style="color: #339933;">=</span>pma<span style="color: #009900;">&#93;</span>
mail<span style="color: #339933;">-</span>whois<span style="color: #009900;">&#91;</span>name<span style="color: #339933;">=</span>pma<span style="color: #339933;">,</span> dest<span style="color: #339933;">=&lt;</span>YOURADDRHERE<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#93;</span>
logpath <span style="color: #339933;">=</span> <span style="color: #339933;">/</span><span style="color: #000000; font-weight: bold;">var</span><span style="color: #339933;">/</span><span style="color: #990000;">log</span><span style="color: #339933;">/</span>apache2<span style="color: #339933;">/</span>access_log
bantime <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span>
maxretry <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span></pre></div></div>

<p>Works for me, another 20 additional IPs/day onto the shitlist!</p>
<blockquote><p><b>Update:</b> It seems another variation of these scans are hitting the NIC&#8217;s quite often; One for Zen Cart to be more precise.<br />
You can easily add support countering this scanner as well, simply by expanding the failregex with this line:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">^<span style="color: #339933;">&lt;</span>HOST<span style="color: #339933;">&gt;</span> <span style="color: #339933;">-.*</span><span style="color: #0000ff;">&quot;GET .*(cart|boutique|catalog|butik|shop|zen|store).*/install\.txt.*&quot;</span><span style="color: #339933;">.*</span><span style="color:#800080;">404.</span><span style="color: #339933;">*</span></pre></div></div>

<p>You can put multiple regexes within one failregex, just put each one on a new line.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/367/countering-phpmyadmin-scanners-with-fail2ban/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Owl City &#8211; Fireflies &amp; Vanilla Twilight</title>
		<link>http://www.pseiko.nl/blog/362/owl-city-fireflies</link>
		<comments>http://www.pseiko.nl/blog/362/owl-city-fireflies#comments</comments>
		<pubDate>Tue, 17 Nov 2009 21:46:46 +0000</pubDate>
		<dc:creator>Remco</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[fireflies]]></category>
		<category><![CDATA[owl city]]></category>
		<category><![CDATA[vanilla twilight]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=362</guid>
		<description><![CDATA[Wat mij betreft in de serie &#8220;kippevel&#8221;&#8230; Owl City from Endeavor Media Group on Vimeo. En van dit nummer is (nog) geen clip volgens mij, maar wellicht het mooiste nummer van het album, dus allicht moest ik hem wel posten]]></description>
			<content:encoded><![CDATA[<p>Wat mij betreft in de serie &#8220;kippevel&#8221;&#8230;</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=6772890&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://vimeo.com/moogaloop.swf?clip_id=6772890&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/6772890">Owl City</a> from <a href="http://vimeo.com/endeavormedia">Endeavor Media Group</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>En van dit nummer is (nog) geen clip volgens mij, maar wellicht het mooiste nummer van het album, dus allicht moest ik hem wel posten <img src='http://www.pseiko.nl/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/_JE0HovpAzw&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/_JE0HovpAzw&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/362/owl-city-fireflies/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Metal Music Explained</title>
		<link>http://www.pseiko.nl/blog/359/metal-music-explained</link>
		<comments>http://www.pseiko.nl/blog/359/metal-music-explained#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:08:54 +0000</pubDate>
		<dc:creator>Farhaz</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[black]]></category>
		<category><![CDATA[heavy]]></category>
		<category><![CDATA[metal]]></category>
		<category><![CDATA[nu]]></category>
		<category><![CDATA[thrash]]></category>
		<category><![CDATA[wraaaaaaaaaaaaaa]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=359</guid>
		<description><![CDATA[POWER METAL: Our hero reaches the castle in a winged white horse, escapes from the dragon, saves the princess, they go far away to a paradise-on-Earth and make love. TRUE/EPIC METAL: Our hero reaches the castle and beats the dragon in a terrible battle, and raises his sword, bathed in the dragon’s blood, and then [...]]]></description>
			<content:encoded><![CDATA[<p><strong>POWER METAL:</strong><br />
Our hero reaches the castle in a winged white horse, escapes from the dragon, saves the princess, they go far away to a paradise-on-Earth and make love.</p>
<p><strong>TRUE/EPIC METAL:</strong><br />
Our hero reaches the castle and beats the dragon in a terrible battle, and raises his sword, bathed in the dragon’s blood, and then makes love to the princess inside the castle</p>
<p><strong>THRASH METAL:</strong><br />
Our hero reaches the castle, fights with grenades and machineguns against the dragon, saves the princess, and f*cks her around Detroit.</p>
<p><strong>HEAVY METAL:</strong><span id="more-359"></span><br />
Our hero reaches the castle in a  Harley Davidson, kills the dragon, has some beers with the princess and then they do it.</p>
<p><strong>FOLK METAL:</strong><br />
Our hero arrives with some friends playing accordion, pipes, violin and other weird instruments. The dragon falls asleep because of too much dancing and they leave… without the princess</p>
<p><strong>VIKING METAL:</strong><br />
Our hero arrives in an old boat, kills the dragon with an axe, cooks it and eats it. He then rapes the prioncess, raids the castle and sets everything on fire before he leaves.</p>
<p><strong>DEATH METAL:</strong><br />
Our hero arrives, kills the dragon, fucks the princess, beats her to death, and leaves…</p>
<p><strong>BLACK METAL:</strong><br />
He arrives before dawn, in the middle of the fog, kills the dragon and impales it in front of the castle. Sodomizes the princess, cuts her with a dagger and drinks her blood in a ritualn ritual. Afterwards he discovers she wasn’t a virgin and impales her next to the dragon.</p>
<p><strong>BRUTAL DEATH:</strong><br />
Our hero kills the princess and fucks the dragon.</p>
<p><strong>GORE METAL:</strong><br />
Arrives, kills the dragon, climbs to the tower, fucks the princess, and kills her. Then he fucks her again, burns her dead body and fucks her again.</p>
<p><strong>DOOM/GOTH METAL:</strong><br />
Reaches the castle, sees the size of the dragon, he gets depressed and he kills himself. The dragon eats our hero’s body and then the princess.</p>
<p><strong>NU METAL:</strong><br />
Reaches the castle and brags about how good he is at fighting and that he can beat the dragon. He is miserably defeated and is left in pieces. Runs away and finds the princess, he tells her of his tragic childhood. The princess slaps his face, and runs to find the “Heavy Metal” hero. The “Nu” hero, takes a Prozac and goes to record a “The best of…” CD</p>
<p><strong>PROGRESSIVE:</strong><br />
Arrives, plays a virtuous guitar solo for 26 minutes. The dragon dies of boredom. Gets to the princess and plays another solo, exploring all of the techniques of tones and compasses learned last year in conservatory(music school). Princess runs away after the “Heavy Metal” hero.</p>
<p><strong>HARD ROCK:</strong><br />
Reaches the castle in a red convertible with two big-breasted blondes and drinking a bottle of Jack Daniels. Kills the dragon with a knife and then makes an orgy with the blondes and the princess.</p>
<p><strong>GLAM ROCK:</strong><br />
Reaches the castle. The dragon laughs his ass off when he sees him and lets him through. Enters the castle, steals the princess’ varnish and lipstick. Then he convinces the dragon to paint the castle pink, and to highlight his hair.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/359/metal-music-explained/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kabouter Wesley</title>
		<link>http://www.pseiko.nl/blog/357/kabouter-wesley</link>
		<comments>http://www.pseiko.nl/blog/357/kabouter-wesley#comments</comments>
		<pubDate>Fri, 30 Oct 2009 00:22:19 +0000</pubDate>
		<dc:creator>Remco</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[kabouter]]></category>
		<category><![CDATA[wesley]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=357</guid>
		<description><![CDATA[Gewoon.. omdat het briljant is! (Klik op lees meer voor meer Kabouter Wesley hilariteiten miljaar!)]]></description>
			<content:encoded><![CDATA[<p>Gewoon.. omdat het briljant is! <img src='http://www.pseiko.nl/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/fuYC--k0GPQ&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/fuYC--k0GPQ&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p>(Klik op lees meer voor meer Kabouter Wesley hilariteiten miljaar!)<br />
<span id="more-357"></span></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/e8BOVPpHgcw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/e8BOVPpHgcw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/S0-XN3_-hqw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/S0-XN3_-hqw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/q1j2oZaRv7M&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/q1j2oZaRv7M&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/xRbQqf3rGuk&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/xRbQqf3rGuk&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/AkOrxlXpWk4&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/AkOrxlXpWk4&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/nHfY5UcPWMw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/nHfY5UcPWMw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/5kZRUT_B9fM&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/5kZRUT_B9fM&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/3Lbhyyr3SKY&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/3Lbhyyr3SKY&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/dOUi2iscaqw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/dOUi2iscaqw&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/357/kabouter-wesley/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Munin plugins for Dell IPMI fan speeds and temperatures</title>
		<link>http://www.pseiko.nl/blog/349/munin-plugins-for-dell-ipmi-fan-speeds-and-temperatures</link>
		<comments>http://www.pseiko.nl/blog/349/munin-plugins-for-dell-ipmi-fan-speeds-and-temperatures#comments</comments>
		<pubDate>Tue, 20 Oct 2009 15:22:26 +0000</pubDate>
		<dc:creator>Remco</dc:creator>
				<category><![CDATA[Computer & Technology Related]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[fan speed]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[ipmi]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[poweredge]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=349</guid>
		<description><![CDATA[It is possible to monitor fan speeds and temperatures on Dell Poweredge servers under Linux. You can achieve this by reading out the IPMI data that is available on the system. I used the steps on this website to buffer the data gathered by IPMI to use in Cacti. However, in addition to Cacti I [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to monitor fan speeds and temperatures on Dell Poweredge servers under Linux. You can achieve this by reading out the IPMI data that is available on the system.<br />
I used the steps on <a href="https://hep.pa.msu.edu/twiki/bin/view/AGLT2/DellCactiSetup">this website</a> to buffer the data gathered by IPMI to use in Cacti.</p>
<p>However, in addition to Cacti I also use Munin to monitor various system parameters. Wouldn&#8217;t it be nice to incorporate graphs for fan speeds and temperatures in Munin? I thought so, so I developed a way to do this.<br />
<span id="more-349"></span><br />
In this case the solution consists out of 2 munin plugins and a PHP script that formats the IPMI values for graphing use. This could also be done directly in the plugins, but since I&#8217;m not such an <code>awk</code> and <code>sed</code> expert I chose to let a PHP script handle the transformation, so I&#8217;d be done sooner (time is money my friends!).</p>
<p>First up, the PHP script:</p>
<p><b>/usr/bin/ipmi.php</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">#!/usr/bin/php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/dev/shm/dell.ipmi&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;r&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$line</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/AmbientTemp/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;tambi.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/CPU1Temp/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;tcpu1.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/CPU2Temp/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;tcpu2.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/Fan1/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;fan1.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/Fan2/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;fan2.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/Fan3/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;fan3.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/Fan4/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;fan4.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/Fan5/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;fan5.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/Fan6/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;fan6.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/PlanarTemp/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;tplan.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/RiserTemp/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;trise.value &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>With the SHM values now being prefixed with matching Munin values, we can graph them in 2 plugins:</p>
<p><b>/etc/munin/plugins/ipmitemps</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> = <span style="color: #ff0000;">&quot;autoconf&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>shm<span style="color: #000000; font-weight: bold;">/</span>dell.ipmi <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #c20cb9; font-weight: bold;">yes</span>
                <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
        <span style="color: #000000; font-weight: bold;">else</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> no
                <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> = <span style="color: #ff0000;">&quot;config&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
&nbsp;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_title Dell 2850 IPMI Temperatures'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_order tcpu1 tcpu2 tambi tplan trise'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_vlabel Temperature (Deg C)'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_scale yes'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_info This graph shows sensor temperatures'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_category system'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu1.label CPU1'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu1.warning 80'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu1.critical 90'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu1.info XEON CPU 1 Temperature'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu2.label CPU2'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu2.warning 80'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu2.critical 90'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tcpu2.info XEON CPU 2 Temperature'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tambi.label Ambient'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tambi.warning 80'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tambi.critical 90'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tambi.info Ambient Temperature'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tplan.label Planar'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tplan.warning 80'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tplan.critical 90'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'tplan.info Planar Temperature'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'trise.label Riser'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'trise.warning 80'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'trise.critical 90'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'trise.info Riser Temperature'</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ipmi.php</pre></td></tr></table></div>

<p>and</p>
<p><b>/etc/munin/plugins/ipmifans</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> = <span style="color: #ff0000;">&quot;autoconf&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>shm<span style="color: #000000; font-weight: bold;">/</span>dell.ipmi <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #c20cb9; font-weight: bold;">yes</span>
                <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
        <span style="color: #000000; font-weight: bold;">else</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> no
                <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> = <span style="color: #ff0000;">&quot;config&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
&nbsp;
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_title Dell 2850 IPMI Fanspeeds'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_order fan1 fan2 fan3 fan4 fan5 fan6'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_vlabel Fanspeed (RPM)'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_scale yes'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_info This graph shows fanspeeds'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'graph_category system'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan1.label Fan1'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan1.info Fan1 speed'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan2.label Fan2'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan2.info Fan2 speed'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan3.label Fan3'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan3.info Fan3 speed'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan4.label Fan4'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan4.info Fan4 speed'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan5.label Fan5'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan5.info Fan5 speed'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan6.label Fan6'</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'fan6.info Fan6 speed'</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ipmi.php</pre></td></tr></table></div>

<p>restart your munin-node, run the munin crons, and voila, graphs!<br />
With these settings they will look like this:</p>
<div id="attachment_352" class="wp-caption alignnone" style="width: 505px"><img src="http://www.pseiko.nl/blog/wp-content/uploads/2009/10/ipmi-day.png" alt="Dell IPMI Temperatures" title="ipmi-temperatures" width="495" height="323" class="size-full wp-image-352" /><p class="wp-caption-text">Dell IPMI Temperatures</p></div>
<div id="attachment_353" class="wp-caption alignnone" style="width: 505px"><img src="http://www.pseiko.nl/blog/wp-content/uploads/2009/10/ipmifans-day.png" alt="Dell IPMI Fan Speeds" title="ipmi-fanspeeds" width="495" height="335" class="size-full wp-image-353" /><p class="wp-caption-text">Dell IPMI Fan Speeds</p></div>
<p>You can modify the params to change the graphs ofcourse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/349/munin-plugins-for-dell-ipmi-fan-speeds-and-temperatures/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Every Single Kramer Entrance ever !!</title>
		<link>http://www.pseiko.nl/blog/346/every-single-kramer-entrance-even</link>
		<comments>http://www.pseiko.nl/blog/346/every-single-kramer-entrance-even#comments</comments>
		<pubDate>Sat, 17 Oct 2009 13:26:55 +0000</pubDate>
		<dc:creator>Farhaz</dc:creator>
				<category><![CDATA[TV]]></category>
		<category><![CDATA[entrance]]></category>
		<category><![CDATA[kramer]]></category>
		<category><![CDATA[seinfeld]]></category>

		<guid isPermaLink="false">http://www.pseiko.nl/blog/?p=346</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/XXSGV5wEv1o&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XXSGV5wEv1o&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pseiko.nl/blog/346/every-single-kramer-entrance-even/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
