<?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>Niels Horn&#039;s Blog &#187; Monitoring</title>
	<atom:link href="http://blog.nielshorn.net/category/monitoring/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nielshorn.net</link>
	<description>Random thoughts, tips &#38; tricks about Slackware-Linux, Lego and Star Wars</description>
	<lastBuildDate>Tue, 07 Sep 2010 21:38:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>More packages for ARMedslack</title>
		<link>http://blog.nielshorn.net/2010/09/more-packages-for-armedslack/</link>
		<comments>http://blog.nielshorn.net/2010/09/more-packages-for-armedslack/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 21:38:20 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[ARMedslack]]></category>
		<category><![CDATA[Hercules]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nbench]]></category>
		<category><![CDATA[ntop]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=575</guid>
		<description><![CDATA[The distributed build system has been working fine for the last few days / nights, so I managed to build several packages for ARMedslack.
These are now available for download on my site:

viewvc + Pygments (browser interface for cvs and svn)
xspacewarp (Time-Trek like game for X-Windows)
inadyn (Dynamic DNS updater)
nagios + nagios-plugins (IT monitoring system)
ntop + GeoIP [...]]]></description>
			<content:encoded><![CDATA[<p>The distributed build system has been working fine for the last few days / nights, so I managed to build several packages for <a href="http://www.armedslack.org/">ARMedslack</a>.<br />
These are now available for download on my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>:</p>
<ul>
<li><strong>viewvc</strong> + Pygments (browser interface for cvs and svn)</li>
<li><strong>xspacewarp</strong> (Time-Trek like game for X-Windows)</li>
<li><strong>inadyn</strong> (Dynamic DNS updater)</li>
<li><strong>nagios</strong> + nagios-plugins (IT monitoring system)</li>
<li><strong>ntop</strong> + GeoIP + graphviz (Network usage monitor)</li>
<li><strong>zabbix-server / -agentd / -prox</strong>y (Distributed monitoring solution)</li>
<li><strong>hercules</strong> (Mainframe emulator)</li>
<li><strong>lbench</strong> (Multi-thread benchmarking tool)</li>
<li><strong>nbench</strong> (Console benchmarking tool)</li>
</ul>
<p>This finishes the series of packages I planned to test / run on my ARMedslack system.<br />
I <em>might</em> build other packages in the future, but there are no specific plans at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/09/more-packages-for-armedslack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Packages for ARMedslack</title>
		<link>http://blog.nielshorn.net/2010/09/packages-for-armedslack/</link>
		<comments>http://blog.nielshorn.net/2010/09/packages-for-armedslack/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 01:50:58 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[ARMedslack]]></category>
		<category><![CDATA[FBReader]]></category>
		<category><![CDATA[QComicBook]]></category>
		<category><![CDATA[Qemu]]></category>
		<category><![CDATA[RRDtool]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=567</guid>
		<description><![CDATA[No, I did not abandon ARMedslack, the official port of Slackware to the ARM architecture&#8230; It was simply a matter of lack of time (or a question of priorities, depending of your point of view).
But this weekend I finally found some time to setup a clean build environment based on the stable ARMedslack 13.1 version.
The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/09/armedslack.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/09/armedslack.png" alt="armedslack" title="armedslack" width="146" height="194" class="alignleft size-full wp-image-568" /></a>No, I did not abandon <a href="http://www.armedslack.org/">ARMedslack</a>, the official port of Slackware to the ARM architecture&#8230; It was simply a matter of lack of time (or a question of priorities, depending of your point of view).<br />
But this weekend I finally found some time to setup a clean build environment based on the stable ARMedslack 13.1 version.</p>
<p><strong>The build environment</strong></p>
<p>I build all my packages for Slackware in Virtual Machines, using QEMU. I use the snapshot feature to guarantee that I always use the same, stable version without leftovers from previous builds. So for my ARMedslack packages I set up a new VM in Qemu, using the emulation of the ARM Versatile board. ARMedslack runs fine on this, but it is quite slow compared to a &#8220;real&#8221; system with an ARM processor, like the SheevaPlug I have.<br />
I set up a distributed compiler &#8220;farm&#8221;, using spare processor time of some other desktops / servers I have in my network, so that compile-time gets a lot friendlier. <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Whenever I find some time I&#8217;ll write a post about distcc and how to set it up to compile for the ARM architecture on x86 boxes.</p>
<p><strong>What to build for ARMedslack</strong></p>
<p>Not all packages I maintain are useful on ARMedslack.<br />
Most ARMedslack systems (SheevaPlug, GuruPlug, etc.) don&#8217;t use any graphical interface, or are slow if using them, so it does not make sense to prepare any heavy graphics-dependent packages like FreeCAD or BRLCAD. I also don&#8217;t think anyone will use ARMedslack to construct Lego models, so these were out as well.<br />
On the other hand, the plug computers are ideal for monitoring your network, so the Nagios, rrdtool, ntop and Zabbix are all on the list.<br />
Hercules has been one of my favorites on the SheevaPlug, to show off my &#8220;portable mainframe&#8221;. I also put a few benchmark programs in the mix and fbreader and QComicBook to test simple graphics applications.<br />
After all, I still hope to have a ARM-based net/note-book one day.</p>
<p><strong>What is ready *now*</strong></p>
<p>Building and testing these packages takes some time if done with care, but I started with the following packages that can already be downloaded from my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>:</p>
<ul>
<li>QComicBook &#8211; A Comic Book reader</li>
<li>liblinebreak &#8211; a library needed by fbreader</li>
<li>fbreader &#8211; An e-book reader</li>
<li>rrdtool &#8211; a library to store and display time-series data, used by many monitoring programs</li>
</ul>
<p><strong>Next&#8230;</strong></p>
<p>Other packages will follow and I&#8217;ll announce them here as soon as they become available (after some basic testing).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/09/packages-for-armedslack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios 3.2.2 released &#8211; Slackware package available</title>
		<link>http://blog.nielshorn.net/2010/09/nagios-3-2-2-released-slackware-package-available/</link>
		<comments>http://blog.nielshorn.net/2010/09/nagios-3-2-2-released-slackware-package-available/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 15:02:09 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=547</guid>
		<description><![CDATA[Nagios released version 3.2.2 of Nagios Core this week.
It contains several fixes and a new configuration interface (although I don&#8217;t use it, I do all my configuration with Vim   ) A detailed ChangeLog can be found here.
As a happy and satisfied user of Nagios, I updated my SlackBuild script immediately and after a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/09/nagios.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/09/nagios.png" alt="nagios" title="nagios" width="295" height="70" class="alignleft size-full wp-image-548" /></a><a href="http://www.nagios.org/">Nagios</a> released version 3.2.2 of Nagios Core this week.<br />
It contains several fixes and a new configuration interface (although I don&#8217;t use it, I do all my configuration with Vim <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) A detailed ChangeLog can be found <a href="http://www.nagios.org/development/history/core-3x">here</a>.</p>
<p>As a happy and satisfied user of Nagios, I updated my SlackBuild script immediately and after a few days of testing, I submitted the new version to SlackBuilds.org today.</p>
<p>Pre-built packages are already available for Slackware (32- &#038; 64-bits) on my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/09/nagios-3-2-2-released-slackware-package-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cacti, Zabbix and ntop updates &#8211; New Slackware packages available</title>
		<link>http://blog.nielshorn.net/2010/08/cacti-zabbix-and-ntop-updates-new-slackware-packages-available/</link>
		<comments>http://blog.nielshorn.net/2010/08/cacti-zabbix-and-ntop-updates-new-slackware-packages-available/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 22:40:26 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Slackware]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[ntop]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=526</guid>
		<description><![CDATA[It was time to update the monitoring packages on my server, so I spent some time to get them all up-to-date to the newest versions that were released recently:

First of all, there is new version of cacti, with several patches from upstream. It corrects a few bugs that appeared after the release of version 0.8.7g. [...]]]></description>
			<content:encoded><![CDATA[<p>It was time to update the monitoring packages on my server, so I spent some time to get them all up-to-date to the newest versions that were released recently:</p>
<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/08/cacti.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/08/cacti.png" alt="cacti" title="cacti" width="100" height="149" class="aligncenter size-full wp-image-527" /></a><br />
First of all, there is new version of <a href="http://www.cacti.net/">cacti</a>, with several patches from upstream. It corrects a few bugs that appeared after the release of version 0.8.7g. Since there have been five patches, I called this version 0.8.7g_p5.</p>
<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/03/zabbix.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/03/zabbix.png" alt="zabbix" title="zabbix" width="118" height="31" class="aligncenter size-full wp-image-280" /></a><br />
The second update is for <a href="http://www.zabbix.com/">Zabbix</a>. I created new versions for zabbix_server and zabbix_agentd and added a new module, zabbix_proxy. All use the new 1.8.3 version that was released a few days ago.<br />
I also implemented some suggestions I received by e-mail, mainly corrections in the documentation.</p>
<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/08/ntop.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/08/ntop.png" alt="ntop" title="ntop" width="103" height="50" class="aligncenter size-full wp-image-528" /></a><br />
The third update is for <a href="http://www.ntop.org/">ntop</a>, which released a completely revamped version 4. I actually waited for version 4.0.1, as I had some stability problems with the 3.x series. This new version seems to be quite stable and adds some nice features.</p>
<p>The new SlackBuilds have been uploaded to SlackBuilds.org and packages for Slackware (32 &#038; 64 bits) are available on my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/08/cacti-zabbix-and-ntop-updates-new-slackware-packages-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cacti 0.8.7g released</title>
		<link>http://blog.nielshorn.net/2010/07/cacti-0-8-7g-released/</link>
		<comments>http://blog.nielshorn.net/2010/07/cacti-0-8-7g-released/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 02:52:07 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Slackware]]></category>
		<category><![CDATA[cacti]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=481</guid>
		<description><![CDATA[After the problems with Cacti release 0.8.7f a few weeks ago, the updated version 0.8.7g was released this week.
I successfully updated my server, which was a very simple process.
After installing the new package, the web-page automatically redirected to the upgrade-page and with a single click Cacti was up-and-running again.  
The new SlackBuild is in [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.cacti.net/images/cacti.png" class="alignleft" width="100" height="149" />After the problems with <a href="http://www.cacti.net/">Cacti</a> release 0.8.7f a few weeks ago, the updated version 0.8.7g was released this week.</p>
<p>I successfully updated my server, which was a very simple process.<br />
After installing the new package, the web-page automatically redirected to the upgrade-page and with a single click Cacti was up-and-running again. <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The new SlackBuild is in the pending queue of <a href="http://slackbuilds.org/">SlackBuilds.org</a> and the pre-built package is available on my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/07/cacti-0-8-7g-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rrdtool 1.4.4 released &#8211; Slackware packages available</title>
		<link>http://blog.nielshorn.net/2010/07/rrdtool-1-4-4-released-slackware-packages-available/</link>
		<comments>http://blog.nielshorn.net/2010/07/rrdtool-1-4-4-released-slackware-packages-available/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 03:34:37 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[RRDtool]]></category>
		<category><![CDATA[Slackware]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=464</guid>
		<description><![CDATA[Last Monday rrdtool-1.4.4 was released. It contains some bug fixes and improvements you can read about here.
The SlackBuild was also improved to solve some problems with the lua, tcl and ruby bindings, that are all installed in the correct paths now.
The new SlackBuild has been submitted and new packages can be downloaded from my site.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/07/RRDtool.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/07/RRDtool.png" alt="RRDtool" title="RRDtool" width="186" height="82" class="alignleft size-full wp-image-465" /></a>Last Monday <a href="http://oss.oetiker.ch/rrdtool/index.en.html">rrdtool</a>-1.4.4 was released. It contains some bug fixes and improvements you can read about <a href="http://oss.oetiker.ch/rrdtool/pub/CHANGES">here</a>.</p>
<p>The SlackBuild was also improved to solve some problems with the lua, tcl and ruby bindings, that are all installed in the correct paths now.</p>
<p>The new SlackBuild has been submitted and new packages can be downloaded from my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/07/rrdtool-1-4-4-released-slackware-packages-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cacti 0.8.7e patch-level 6</title>
		<link>http://blog.nielshorn.net/2010/07/cacti-0-8-7e-patch-level-6/</link>
		<comments>http://blog.nielshorn.net/2010/07/cacti-0-8-7e-patch-level-6/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 02:28:31 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[cacti]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=458</guid>
		<description><![CDATA[A few weeks ago the Cacti developers released version 0.8.7f of Cacti, but it was removed from their site shortly after the release because of some new bugs that were introduced.
While we&#8217;re waiting for the new version to be re-released, I built a package for the current release (0.8.7e) with all the patches that upstream [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.cacti.net/images/cacti.png" title="Cacti" class="alignleft" width="100" height="149" />A few weeks ago the <a href="http://www.cacti.net/">Cacti</a> developers released version 0.8.7f of Cacti, but it was removed from their site shortly after the release because of some new bugs that were introduced.</p>
<p>While we&#8217;re waiting for the new version to be re-released, I built a package for the current release (0.8.7e) with all the patches that upstream made available on their site.<br />
This way we can have a stable and secure Cacti installation while we wait for the new version.</p>
<p>The package can be downloaded from my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/07/cacti-0-8-7e-patch-level-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RRDtool 1.4.3 released</title>
		<link>http://blog.nielshorn.net/2010/04/rrdtool-1-4-3-released/</link>
		<comments>http://blog.nielshorn.net/2010/04/rrdtool-1-4-3-released/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 02:02:14 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[ARMedslack]]></category>
		<category><![CDATA[RRDtool]]></category>
		<category><![CDATA[Sem categoria]]></category>
		<category><![CDATA[Slackware]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=283</guid>
		<description><![CDATA[Last week RRDtool 1.4.3 was released. It solves several minor bugs in the previous 1.4.2 version and adds a few new options. See here for the updated change log.
I updated the SlackBuild script and submitted it to SlackBuilds.org. Pre-built packages for Slackware 32+64 bits and ARMedslack can be downloaded from the usual page.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.nielshorn.net/wp-content/uploads/2010/03/RRDtool.png" alt="RRDtool" title="RRDtool" width="186" height="82" class="alignleft size-full wp-image-284" />Last week <a href="http://oss.oetiker.ch/rrdtool/index.en.html">RRDtool</a> 1.4.3 was released. It solves several minor bugs in the previous 1.4.2 version and adds a few new options. See <a href="http://oss.oetiker.ch/rrdtool/pub/CHANGES">here</a> for the updated change log.</p>
<p>I updated the SlackBuild script and submitted it to SlackBuilds.org. Pre-built packages for Slackware 32+64 bits and ARMedslack can be downloaded from the <a href="http://www.nielshorn.net/slackware/slack_pkg.php">usual page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/04/rrdtool-1-4-3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zabbix 1.8.2 packages for Slackware</title>
		<link>http://blog.nielshorn.net/2010/03/zabbix-1-8-2-packages-for-slackware/</link>
		<comments>http://blog.nielshorn.net/2010/03/zabbix-1-8-2-packages-for-slackware/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 01:32:22 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[ARMedslack]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=279</guid>
		<description><![CDATA[A new version for Zabbix &#8211; the open source enterprise monitoring solution &#8211; was released yesterday. This new version (1.8.2) solves some bugs in the previous version and introduces some new features and improvements. For the complete announcement, check this link.
I submitted the new SlackBuilds for the server and agent parts to SlackBuilds.org. Pre-built packages [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.nielshorn.net/wp-content/uploads/2010/03/zabbix.png" alt="zabbix" title="zabbix" width="118" height="31" class="alignleft size-full wp-image-280" />A new version for <a href="http://www.zabbix.com/">Zabbix</a> &#8211; the open source enterprise monitoring solution &#8211; was released yesterday. This new version (1.8.2) solves some bugs in the previous version and introduces some new features and improvements. For the complete announcement, check <a href="http://www.zabbix.com/rn1.8.2.php">this</a> link.</p>
<p>I submitted the new SlackBuilds for the server and agent parts to <a href="http://slackbuilds.org">SlackBuilds.org</a>. Pre-built packages for the agent daemon for Slackware can be downloaded from my <a href="http://www.nielshorn.net/slackware/slack_pkg.php">site</a>, including a new package for ARMedslack.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/03/zabbix-1-8-2-packages-for-slackware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using wireshark with remote capturing</title>
		<link>http://blog.nielshorn.net/2010/02/using-wireshark-with-remote-capturing/</link>
		<comments>http://blog.nielshorn.net/2010/02/using-wireshark-with-remote-capturing/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 18:20:24 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=167</guid>
		<description><![CDATA[Wireshark is a very nice network protocol analyzer / sniffer, that is very complete and totally free and open source. It is the standard for examining network packets, used by many professionals and home users. I&#8217;ve been using wireshark since the days when it was still called Ethereal, some years ago.
The last few days I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wireshark.org/">Wireshark</a> is a very nice network protocol analyzer / sniffer, that is very complete and totally free and open source. It is <strong>the</strong> standard for examining network packets, used by many professionals and home users. I&#8217;ve been using wireshark since the days when it was still called Ethereal, some years ago.</p>
<p>The last few days I was struggling with the following situation:</p>
<ul>
<li>I wanted to examine some packets passing through my firewall</li>
<li>my firewall is a &#8220;headless&#8221; (this means without a monitor, accessible only via ssh) Slackware server</li>
<li>it has no X installed (and therefor no window manager etc.) so it won&#8217;t run wireshark</li>
</ul>
<p>Now wireshark can read packets captured by tcpdump and written to a file, so that&#8217;s what I did at first:</p>
<ul>
<li>capture with tcpdump</li>
<li>write the packets to a file on a network share</li>
<li>open the file with wireshark</li>
</ul>
<p>The problem is that I wanted to examine the packets &#8220;on-line&#8221;, as they pass through the firewall.<br />
Linux has a solution (inherited from Unix) for this, called &#8220;pipes&#8221;. These are a special kind of files, where one program writes, while another reads from it, getting the contents in the right order.<br />
In other words: the packet that went into the pipe first, will come out first at the other site of the pipe. Imagine it as a &#8220;vitrual tube&#8221;.</p>
<p>It was a bit of a struggle to get all the parameters right, but in the end, I got it working like this (note: all commands are entered in a terminal session on the desktop):</p>
<ol>
<li>Create the pipe</li>
<p><code><strong>niels@desktop:~$</strong> mkfifo /tmp/pipes/cap_fw</code><br />
&#8220;/tmp/pipes/&#8221; is where I create my pipes, feel free to use whatever directory you prefer.<br />
&#8220;cap_fw&#8221; is the name of the pipe I selected.</p>
<li>Start tcpdump remotely with ssh from the desktop where you have wireshark installed:</li>
<p><code><strong>niels@desktop:~$</strong> ssh root@&lt;firewall&gt; "tcpdump -s 0 -U -n -w - -i eth1 not port 22" &gt; /tmp/pipes/cap_fw</code><br />
Replace &lt;firewall&gt; with the name or ip address of your remote server.</p>
<p>The options I used are:<br />
	<code>-s 0</code> : use the required length to catch whole packets<br />
	<code>-U</code> : packet-buffering &#8211; write packet to pipe as soon as it is captured (as opposed to waiting for the buffer to fill)<br />
	<code>-n</code> : no address-to-name conversion (you can let wireshark do this if you want)<br />
	<code>-w -</code> : write output to standard output<br />
	<code>-i eth1</code> : capture from interface eth1 &#8211; change to match your setup<br />
	<code>not port 22</code> : leave out any packets from / to port 22. This is needed as we use ssh to connect to out firewall, so that we don&#8217;t capture the captured packets again&#8230; If you need to examine port 22 on your server, use ssh over an alternative port.<br />
	<code>&gt; /tmp/pipes/cap_fw</code> : redirect the output to our pipe.</p>
<li>While tcpdump is capturing packets and sending them to the pipe, open another terminal, start wireshark and use the pipe as the input</li>
<p><code><strong>niels@desktop:~$</strong> wireshark -k -i /tmp/pipes/cap_fw</code><br />
Here the options mean:<br />
	<code>-k</code> : start immediately<br />
	<code>-i /tmp/pipes/cap_fw</code> : use our pipe as the &#8220;interface&#8221;
</ol>
<p>And you&#8217;re up and running!<br />
You can use all the normal functions of wireshark, like filtering, etc., as if you were capturing from a local interface.</p>
<p>By special request from BP{k}, here is a diagram of the setup showing how ssh gets the data from the server, captured by tcpdump and sends it through the pipe to wireshark (with a little help from LeoCAD, l3p and POV-Ray):</p>
<p><a href="http://blog.nielshorn.net/wp-content/uploads/2010/02/remote_wireshark1.png"><img src="http://blog.nielshorn.net/wp-content/uploads/2010/02/remote_wireshark1-1024x768.png" alt="remote_wireshark" title="remote_wireshark" width="1024" height="768" class="aligncenter size-large wp-image-183" /></a></p>
<p align="center">(click on the image to enlarge it)</p>
<p>I might write a nice bash script to make things simpler now that I figured it all out.<br />
If it is good enough in the end, I&#8217;ll publish it here on my blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/02/using-wireshark-with-remote-capturing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
