<?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>ID&#039;s blog</title>
	<atom:link href="http://zeldor.biz/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeldor.biz</link>
	<description>Linux TCP/IP, GreenIT and more...</description>
	<lastBuildDate>Thu, 17 May 2012 18:38:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Find duplicate files by size</title>
		<link>http://zeldor.biz/2012/05/find-duplicate-files-by-size/</link>
		<comments>http://zeldor.biz/2012/05/find-duplicate-files-by-size/#comments</comments>
		<pubDate>Thu, 17 May 2012 18:38:07 +0000</pubDate>
		<dc:creator>zeldor</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[duplicate filles]]></category>

		<guid isPermaLink="false">http://zeldor.biz/?p=5036</guid>
		<description><![CDATA[Find the same files by their size: 1 ls -l &#124; awk '$1!~/^d/{if(size[$5]!=&#34;&#34;){ print}size[$5]=$8}' Very useful to delete duplicate photos or videos.]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeldor.biz/wp-content/uploads/2012/03/duplicated-files.jpg"><img src="http://zeldor.biz/wp-content/uploads/2012/03/duplicated-files.jpg" alt="" title="Duplicated Files" width="110" height="82" class="alignleft size-full wp-image-5043" /></a></p>
<p>Find the same files by their size:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'$1!~/^d/{if(size[$5]!=&quot;&quot;){ print}size[$5]=$8}'</span></pre></td></tr></table></div>

<p>Very useful to delete duplicate  photos or videos.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeldor.biz/2012/05/find-duplicate-files-by-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World Backup Day!</title>
		<link>http://zeldor.biz/2012/03/world-backup-day/</link>
		<comments>http://zeldor.biz/2012/03/world-backup-day/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 20:15:50 +0000</pubDate>
		<dc:creator>zeldor</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[World Backup Day]]></category>

		<guid isPermaLink="false">http://zeldor.biz/?p=5053</guid>
		<description><![CDATA[You know this situation?? 31st March has been declared to World Backup Day please remember to ensure your files are backed up on March 31st! And please DONT think about RAID! Believe him ;) Some stuff written by myself about backuping different stuff: Create Backups with tartarus MySQL Dump Backup your MBR Rsync Server]]></description>
			<content:encoded><![CDATA[<p><center>You know this situation??</center><br />
<a href="http://zeldor.biz/wp-content/uploads/2012/03/Homer.jpg"><img src="http://zeldor.biz/wp-content/uploads/2012/03/Homer.jpg" alt="" title="Homer" width="170" height="170" class="aligncenter size-full wp-image-5055" /></a></p>
<p><a href="http://www.worldbackupday.com/">31st March</a> has been declared to World Backup Day please remember to ensure your files are backed up on March 31st!</p>
<p><center>And please DONT think about RAID! Believe him ;)</center><br />
<a href="http://zeldor.biz/wp-content/uploads/2012/03/RAID.jpg"><img src="http://zeldor.biz/wp-content/uploads/2012/03/RAID.jpg" alt="" title="RAID" width="400" height="282" class="aligncenter size-full wp-image-5058" /></a></p>
<p>Some stuff written by myself about backuping different stuff:<br />
<a href="http://zeldor.biz/create-backups-with-tartarus/" title="Create Backups with tartarus">Create Backups with tartarus</a><br />
<a href="http://zeldor.biz/mysql-dump/">MySQL Dump</a><br />
<a href="http://zeldor.biz/backup-your-mbr/">Backup your MBR</a><br />
<a href="http://zeldor.biz/rsync-server/">Rsync Server</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zeldor.biz/2012/03/world-backup-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>bind9 zone with umlauts</title>
		<link>http://zeldor.biz/2012/03/bind9-zone-with-umlauts/</link>
		<comments>http://zeldor.biz/2012/03/bind9-zone-with-umlauts/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 19:55:36 +0000</pubDate>
		<dc:creator>zeldor</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[bind9]]></category>
		<category><![CDATA[domain with umaut]]></category>
		<category><![CDATA[umaut domain]]></category>

		<guid isPermaLink="false">http://zeldor.biz/?p=5025</guid>
		<description><![CDATA[Sure you know, this is a really bad idea;) But if you want to register a domain that contains a fückinß umlaut, this solution will work for bind. But I start with a little explanation, you are not allowed to fill the bind configs with umlauts you should transform them to punycode. Install transformation tool: [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeldor.biz/wp-content/uploads/2012/02/umlaut.gif"><img src="http://zeldor.biz/wp-content/uploads/2012/02/umlaut.gif" alt="" title="umlaut" width="200" height="100" class="alignleft size-full wp-image-5046" /></a></p>
<p>Sure you know, this is a really bad idea;) But if you want to register a domain that contains a fückinß umlaut, this solution will work for bind. But I start with a little explanation, you are not allowed to fill the bind configs with umlauts you should transform them to punycode.</p>
<p>Install transformation tool:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> idn</pre></td></tr></table></div>

<p>Transform you domain:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> www.größte-scheiße.de <span style="color: #000000; font-weight: bold;">|</span> idn <span style="color: #660033;">-a</span> <span style="color: #660033;">--quiet</span></pre></td></tr></table></div>

<p>The output will be: www.xn--grsste-scheisse-9sb.de</p>
<p>Now you can use the converted string of your domain in the bind configuration files.<br />
If you are using putty please set your Translation to UTF8 otherwise idn will not convert your domain;)</p>
]]></content:encoded>
			<wfw:commentRss>http://zeldor.biz/2012/03/bind9-zone-with-umlauts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Segmentation fault example</title>
		<link>http://zeldor.biz/2012/03/segmentation-fault-example/</link>
		<comments>http://zeldor.biz/2012/03/segmentation-fault-example/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 13:04:45 +0000</pubDate>
		<dc:creator>zeldor</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[GCC]]></category>
		<category><![CDATA[Segmentation fault]]></category>
		<category><![CDATA[strace]]></category>

		<guid isPermaLink="false">http://zeldor.biz/?p=4994</guid>
		<description><![CDATA[A tiny Segmentation fault study example (Page Fault). This tiny code will produce a SIGSEGV (Segmentation fault) after compiling and executing Create file example.c and fill it with this code: 1 2 3 4 5 6 7 8 9 #include &#60;stdio.h&#62; &#160; int main&#40;&#41; &#123; char* text = &#34;hello world&#34;; &#160; text = 13423; printf&#40;text&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeldor.biz/wp-content/uploads/2012/02/c.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/c.png" alt="" title="C" width="112" height="112" class="alignleft size-full wp-image-4995" /></a><br />
A tiny Segmentation fault study example (Page Fault).</p>
<p>This tiny code will produce a SIGSEGV (Segmentation fault) after compiling and executing</p>
<p>Create file <em>example.c</em> and fill it with this code:<span id="more-4994"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#include &lt;stdio.h&gt;</span>
&nbsp;
int main<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
  char<span style="color: #000000; font-weight: bold;">*</span> text = <span style="color: #ff0000;">&quot;hello world&quot;</span>;
&nbsp;
  text = <span style="color: #000000;">13423</span>;
  <span style="color: #7a0874; font-weight: bold;">printf</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>text<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Compile:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-o</span> example example.c</pre></td></tr></table></div>

<p>Run and get a Segmentation fault:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>example</pre></td></tr></table></div>

<p>Debug Segmentation fault:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">strace</span> .<span style="color: #000000; font-weight: bold;">/</span>example</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://zeldor.biz/2012/03/segmentation-fault-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ip aIcinga/Nagios: Check Windows Updates</title>
		<link>http://zeldor.biz/2012/02/icinganagios-check-windows-updates/</link>
		<comments>http://zeldor.biz/2012/02/icinganagios-check-windows-updates/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 12:20:52 +0000</pubDate>
		<dc:creator>zeldor</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Icinga]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Windows Updates]]></category>

		<guid isPermaLink="false">http://zeldor.biz/?p=4889</guid>
		<description><![CDATA[Another really helpful check for your Icinga or Nagios instance. If your have any windows machines you can check the Windows Update-State. How many Updates you need to install and if you need to reboot your servers after updating them. Get the Update Script. Copy the Script to &#8220;C:\Program Files\NSClient++\scripts\&#8221; Uncomment the NRPEListener.dll and CheckExternalScripts.dll [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeldor.biz/wp-content/uploads/2012/02/icinga.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/icinga.png" alt="" title="Icinga Logo" width="128" height="120" class="alignleft size-full wp-image-4911" /></a></p>
<p>Another really helpful check for your Icinga or Nagios instance. </p>
<p>If your have any windows machines you can check the Windows Update-State. How many Updates you need to install and if you need to reboot your servers after updating them.<span id="more-4889"></span></p>
<p><a href="https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Windows-NRPE/Check-Windows-Updates" title="Get">Get</a> the Update Script.</p>
<p>Copy the Script to &#8220;C:\Program Files\NSClient++\scripts\&#8221;</p>
<p>Uncomment the <strong>NRPEListener.dll</strong> and <strong>CheckExternalScripts.dll</strong> parameters in your NSC.ini config:</p>
<p>In the <strong>[NRPE]</strong> section<br />
uncomment following options:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">port</span>=<span style="color: #000000;">5666</span>
<span style="color: #007800;">command_timeout</span>=<span style="color: #000000;">60</span>
<span style="color: #007800;">allow_arguments</span>=<span style="color: #000000;">0</span>
<span style="color: #007800;">use_ssl</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">socket_timeout</span>=<span style="color: #000000;">30</span></pre></td></tr></table></div>

<p><strong>[External Scripts]</strong> section:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">check_win_updates</span>=cscript.exe <span style="color: #000000; font-weight: bold;">//</span>T:<span style="color: #000000;">40</span> <span style="color: #000000; font-weight: bold;">//</span>NoLogo scripts\test-updates.wsf <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">w</span>:<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">/</span>C:<span style="color: #000000;">10</span></pre></td></tr></table></div>

<p>Restart NSClient Service:<br />
<a href="http://zeldor.biz/wp-content/uploads/2012/02/restart-service.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/restart-service.png" alt="" title="restart-service" width="441" height="106" class="aligncenter size-full wp-image-4897" /></a></p>
<p>Check the script from windows command line (CMD- the black window;)):<br />
<a href="http://zeldor.biz/wp-content/uploads/2012/02/win-command-line-check.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/win-command-line-check-300x8.png" alt="" title="win-command-line-check" width="300" height="8" class="aligncenter size-medium wp-image-4904" /></a></p>
<p><a href="http://zeldor.biz/wp-content/uploads/2012/02/windows-script.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/windows-script.png" alt="" title="windows-script" width="240" height="127" class="aligncenter size-full wp-image-4915" /></a></p>
<p>Icinga output (click to resize):<br />
<a href="http://zeldor.biz/wp-content/uploads/2012/02/Windows-Updates-Critical.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/Windows-Updates-Critical-300x8.png" alt="" title="Windows-Updates-Critical" width="300" height="8" class="aligncenter size-medium wp-image-4924" /></a></p>
<p>The result (after I installed some Updates:-)) (click to resize):<br />
<a href="http://zeldor.biz/wp-content/uploads/2012/02/icinga-windows-updates1.png"><img src="http://zeldor.biz/wp-content/uploads/2012/02/icinga-windows-updates1-300x11.png" alt="" title="icinga-windows-updates" width="300" height="11" class="aligncenter size-medium wp-image-4907" /></a></p>
<p><strong>Icinga-side configurations:</strong></p>
<p>Command definition:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">define <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    command_name    check_win_updates
    command_line    <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nagios<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>check_nrpe <span style="color: #660033;">-H</span> <span style="color: #007800;">$HOSTADDRESS</span>$ <span style="color: #660033;">-p</span> <span style="color: #000000;">5666</span> <span style="color: #660033;">-c</span> check_win_updates
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Service definition:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">define service <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    hostgroup_name                  check-win-updates
    service_description             Windows Updates
    check_command                   check_win_updates
    use                             generic-service
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Hostgroups definition:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">define hostgroup <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    hostgroup_name          check-win-updates
    <span style="color: #7a0874; font-weight: bold;">alias</span>                   Windows Updates
    members                 windows2008r2, windows7
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Check icinga-config and restart the process:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">icinga <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>icinga<span style="color: #000000; font-weight: bold;">/</span>icinga.cfg <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> service icinga reload</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://zeldor.biz/2012/02/icinganagios-check-windows-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

