<?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>Matejunkie &#187; rrd</title>
	<atom:link href="http://www.matejunkie.com/tag/rrd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matejunkie.com</link>
	<description>"Look behind you, a Three-Headed Monkey!"</description>
	<lastBuildDate>Thu, 07 Jan 2010 14:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PNP Template for Process Check Plugin</title>
		<link>http://www.matejunkie.com/pnp-template-for-process-check-plugin/</link>
		<comments>http://www.matejunkie.com/pnp-template-for-process-check-plugin/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 12:35:07 +0000</pubDate>
		<dc:creator>Mike Adolphs</dc:creator>
				<category><![CDATA[Binary Talks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[pnp template]]></category>
		<category><![CDATA[rrd]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.matejunkie.com/?p=1103</guid>
		<description><![CDATA[Just a short note: Here&#8217;s the appropriate PNP Template to the process check plugin which I&#8217;ve recently written to create nice and shiny graphs: # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; [...]]]></description>
			<content:encoded><![CDATA[<p>Just a short note:<br />
Here&#8217;s the appropriate PNP Template to the <a title="Matejunkie - Process Check Plugin for Nagios" href="http://www.matejunkie.com/process-check-plugin-for-nagios/" target="_blank">process check plugin</a> which I&#8217;ve recently written to create nice and shiny graphs:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#   This program is free software; you can redistribute it and/or modify
</span><span style="color: #666666; font-style: italic;">#   it under the terms of the GNU General Public License as published by
</span><span style="color: #666666; font-style: italic;">#   the Free Software Foundation; either version 2 of the License, or
</span><span style="color: #666666; font-style: italic;">#   (at your option) any later version.
</span><span style="color: #666666; font-style: italic;">#
</span><span style="color: #666666; font-style: italic;">#   This program is distributed in the hope that it will be useful,
</span><span style="color: #666666; font-style: italic;">#   but WITHOUT ANY WARRANTY; without even the implied warranty of
</span><span style="color: #666666; font-style: italic;">#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
</span><span style="color: #666666; font-style: italic;">#   GNU General Public License for more details.
</span><span style="color: #666666; font-style: italic;">#
</span><span style="color: #666666; font-style: italic;">#   You should have received a copy of the GNU General Public License
</span><span style="color: #666666; font-style: italic;">#   along with this program; if not, write to the Free Software
</span><span style="color: #666666; font-style: italic;">#   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
</span>
<span style="color: #666666; font-style: italic;">#   PNP Template for check_ps.sh
</span><span style="color: #666666; font-style: italic;">#   Author: Mike Adolphs (http://www.matejunkie.com/
</span>
<span style="color: #000088;">$opt</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;--vertical-label <span style="color: #000099; font-weight: bold;">\&quot;</span>percent<span style="color: #000099; font-weight: bold;">\&quot;</span> -u 100 -l 0 -r --title <span style="color: #000099; font-weight: bold;">\&quot;</span>CPU/Memory Usage for <span style="color: #006699; font-weight: bold;">$hostname</span> / <span style="color: #006699; font-weight: bold;">$servicedesc</span><span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$opt</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;--vertical-label <span style="color: #000099; font-weight: bold;">\&quot;</span>minutes<span style="color: #000099; font-weight: bold;">\&quot;</span> -u 100 -l 0 -r --title <span style="color: #000099; font-weight: bold;">\&quot;</span>cputime for <span style="color: #006699; font-weight: bold;">$hostname</span> / <span style="color: #006699; font-weight: bold;">$servicedesc</span><span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span>  <span style="color: #0000ff;">&quot;DEF:cpu=<span style="color: #006699; font-weight: bold;">$rrdfile</span>:<span style="color: #006699; font-weight: bold;">$DS[1]</span>:AVERAGE &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span>  <span style="color: #0000ff;">&quot;DEF:memory=<span style="color: #006699; font-weight: bold;">$rrdfile</span>:<span style="color: #006699; font-weight: bold;">$DS[2]</span>:AVERAGE &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span>  <span style="color: #0000ff;">&quot;DEF:cputime=<span style="color: #006699; font-weight: bold;">$rrdfile</span>:<span style="color: #006699; font-weight: bold;">$DS[3]</span>:AVERAGE &quot;</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;COMMENT:<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>tLAST<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>tAVERAGE<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>tMAX<span style="color: #000099; font-weight: bold;">\\</span>n<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;COMMENT:<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>tLAST<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>tAVERAGE<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>tMAX<span style="color: #000099; font-weight: bold;">\\</span>n<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;LINE2:cpu#E80C3E:<span style="color: #000099; font-weight: bold;">\&quot;</span>CPU<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:cpu:LAST:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf <span style="color: #009933; font-weight: bold;">%%</span><span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:cpu:AVERAGE:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf <span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:cpu:MAX:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf <span style="color: #000099; font-weight: bold;">\\</span>n<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;LINE2:memory#008000:<span style="color: #000099; font-weight: bold;">\&quot;</span>Memory<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:memory:LAST:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf <span style="color: #009933; font-weight: bold;">%%</span><span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:memory:AVERAGE:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf <span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:memory:MAX:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf <span style="color: #000099; font-weight: bold;">\\</span>n<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;AREA:cputime#E80C3E:<span style="color: #000099; font-weight: bold;">\&quot;</span>CPUTime<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:cputime:LAST:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf min<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:cputime:AVERAGE:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf min<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\\</span>t<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$def</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;GPRINT:cputime:MAX:<span style="color: #000099; font-weight: bold;">\&quot;</span>%6.2lf min<span style="color: #000099; font-weight: bold;">\\</span>n<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.matejunkie.com/pnp-template-for-process-check-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful graphs with SmokePing</title>
		<link>http://www.matejunkie.com/useful-graphs-with-smokeping/</link>
		<comments>http://www.matejunkie.com/useful-graphs-with-smokeping/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 06:21:17 +0000</pubDate>
		<dc:creator>Mike Adolphs</dc:creator>
				<category><![CDATA[Binary Talks]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[rrd]]></category>
		<category><![CDATA[smokeping]]></category>
		<category><![CDATA[speedy-cgi]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.matejunkie.net//?p=710</guid>
		<description><![CDATA[SmokePing is a useful tool developed by Tobias Oetiker and Niko Tyni which monitors and visualize one&#8217;s network latency. The (for me) most important core features are the following: A wide range of measurement plugins Master/Slave setup is possible Good-looking rrd based graphs Open Source/GPL 2 (or higher) licensed In my opinion, it does a [...]]]></description>
			<content:encoded><![CDATA[<p><a title="SmokePing - target view" href="http://www.matejunkie.com/wp-content/uploads/2009/02/smokeping_01.png" target="_blank"><img class="size-thumbnail wp-image-715 alignright" title="SmokePing - target view" src="http://www.matejunkie.com/wp-content/uploads/2009/02/smokeping_01-150x150.png" alt="SmokePing - target view" width="150" height="150" /></a><a title="SmokePing website" href="http://oss.oetiker.ch/smokeping/index.en.html" target="_blank">SmokePing</a> is a useful tool developed by Tobias Oetiker and Niko Tyni which monitors and visualize one&#8217;s network latency. The (for me) most important core features are the following:</p>
<ul>
<li>A wide range of measurement plugins</li>
<li>Master/Slave setup is possible</li>
<li>Good-looking rrd based graphs</li>
<li>Open Source/GPL 2 (or higher) licensed</li>
</ul>
<p>In my opinion, it does a really good job on longterm monitoring when there&#8217;s need of drawing graphs over a long time period. Don&#8217;t get me wrong, SmokePing is capable for shortterm monitoring as well, e.g. exploring graphs for the last couple of hours to find network outages and its integrated alerting system does a good job, but I&#8217;d suggest using more advanced network monitoring solutions like Nagios for those purposes.</p>
<p>In <a title="Ubuntu Intrepid SmokePing package" href="http://packages.ubuntu.com/intrepid/net/smokeping" target="_blank">Ubuntu</a> (Intrepid) or <a title="Debian lenny SmokePing pakacge" href="http://packages.debian.org/de/lenny/smokeping" target="_blank">Debian</a> (Lenny) the package looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:~$ <span style="color: #c20cb9; font-weight: bold;">aptitude</span> show smokeping
Package: smokeping
State: installed
Automatically installed: no
Version: 2.3.6-<span style="color: #000000;">1</span>
Priority: extra
Section: universe<span style="color: #000000; font-weight: bold;">/</span>net
Maintainer: Ubuntu MOTU Developers
Uncompressed Size: 2732k
Depends: <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= 5.6.0-<span style="color: #000000;">16</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, libnet-perl, libwww-perl, libsnmp-session-perl <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">0.86</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, librrds-perl
         <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">1.2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, liburi-perl, fping <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= 2.4b2-to-ipv6-<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, speedy-cgi-perl <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">2.21</span>-<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, exim4 <span style="color: #000000; font-weight: bold;">|</span>
         mail-transport-agent, debianutils <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">1.7</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, adduser, lsb-base <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">3.0</span>-<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,
         libdigest-hmac-perl, ucf <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">0.28</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Recommends: apache2 <span style="color: #000000; font-weight: bold;">|</span> httpd, libsocket6-perl, dnsutils, echoping
Suggests: curl, libauthen-radius-perl, libnet-ldap-perl, libnet-dns-perl, openssh-client,
          libio-socket-ssl-perl, libnet-telnet-perl
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>It&#8217;s easily installed with all its dependencies by the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> smokeping</pre></div></div>

<p><a href="http://www.matejunkie.com/wp-content/uploads/2009/02/smokeping_02.png"><img class="alignleft size-thumbnail wp-image-716" title="SmokePing - detailed view" src="http://www.matejunkie.com/wp-content/uploads/2009/02/smokeping_02-150x150.png" alt="SmokePing - detailed view" width="150" height="150" /></a>The html files will be installed to /var/www/smokeping, cgi to /usr/lib/cgi-bin and SmokePing&#8217;s configuration to /etc/smokeping. If you didn&#8217;t alter the apache configuration yet, the default vhost works just perfectly. You should be able to access the web-interface right away by typing http://localhost/smokeping/ in your favorite browser. If not, you&#8217;ve probably altered your webserver&#8217;s configuration and should know how to setup a cgi-capable environment for SmokePing on your own.</p>
<p>Let&#8217;s take a deeper look on the configuration in /etc/smokeping:</p>
<ul>
<li><strong>basepage.html</strong> &#8211; contains the structure and layout for the web-interface</li>
<li><strong>config</strong> &#8211; includes all files in /etc/smokeping/config.d</li>
<li><strong>config.d</strong> &#8211; directory for the distributed configuration
<ul>
<li><strong>Alerts</strong> &#8211; configuration for the alerting system</li>
<li><strong>Database</strong> &#8211; defines rrd parameters</li>
<li><strong>General</strong> &#8211; defines general information like owner, contact, mailhost, etc.</li>
<li><strong>pathnames</strong> &#8211; various pathnames that needs to be configured</li>
<li><strong>Presentation</strong> &#8211; options to define the presentation of SmokePing</li>
<li><strong>Probes</strong> &#8211; configuration of measurement plugins</li>
<li><strong>Slaves</strong> &#8211; part of the Master/Slave setup</li>
<li><strong>Targets</strong> &#8211; configuration of targets that needs to be monitored</li>
</ul>
</li>
<li><strong>smokemail</strong> &#8211; part of configuration for dynamic IP support</li>
<li><strong>tmail</strong> &#8211; tSmoke html mail template file</li>
</ul>
<p>Now don&#8217;t get frustrated. You don&#8217;t need to alter every single config file to get SmokePing running. As you may experience, most of the default values are working like a charm.</p>
<p>Let&#8217;s begin with configuring general information in /etc/smokeping/config.d/General. Feel free to configure the mailhost, but for an initial configuration there&#8217;s no need for it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>smokeping$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> config.d<span style="color: #000000; font-weight: bold;">/</span>General
<span style="color: #000000; font-weight: bold;">***</span> General <span style="color: #000000; font-weight: bold;">***</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">@</span>include <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>smokeping<span style="color: #000000; font-weight: bold;">/</span>config.d<span style="color: #000000; font-weight: bold;">/</span>pathnames
&nbsp;
<span style="color: #666666; font-style: italic;"># Please edit this to suit your installation</span>
owner    = Mike Adolphs
contact  = mike<span style="color: #000000; font-weight: bold;">@</span>matejunkie.com
cgiurl   = http:<span style="color: #000000; font-weight: bold;">//</span>localhost<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>smokeping.cgi
mailhost = smtp.mailhost.abc
<span style="color: #666666; font-style: italic;"># specify this to get syslog logging</span>
syslogfacility = local0
<span style="color: #666666; font-style: italic;"># each probe is now run in its own process</span>
<span style="color: #666666; font-style: italic;"># disable this to revert to the old behaviour</span>
<span style="color: #666666; font-style: italic;"># concurrentprobes = no</span></pre></div></div>

<p>The next file you probably want to configure is /etc/smokeping/config.d/Probes. There you&#8217;ll be able to define other measurement plugins besides ICMP. In the following example I&#8217;ve defined DNS and HTTP measurement methods. Each of the measurement plugins comes with various configuration parameters like pings, step, urlformat or else. Each plugin make use of the binary parameter. For a complete list of parameters you should consider the <a title="SmokePing documentation - configuration" href="http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html" target="_blank">official documentation</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>smokeping$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> config.d<span style="color: #000000; font-weight: bold;">/</span>Probes
<span style="color: #000000; font-weight: bold;">***</span> Probes <span style="color: #000000; font-weight: bold;">***</span>
&nbsp;
+ FPing
&nbsp;
binary = <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>fping
&nbsp;
+ DNS
&nbsp;
binary = <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>dig
pings = <span style="color: #000000;">5</span>
step = <span style="color: #000000;">180</span>
&nbsp;
+ Curl
&nbsp;
binary = <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>curl
pings = <span style="color: #000000;">5</span>
step = <span style="color: #000000;">60</span>
urlformat = http:<span style="color: #000000; font-weight: bold;">//%</span>host<span style="color: #000000; font-weight: bold;">%/</span></pre></div></div>

<p>The third and final configuration file for our initial configuration is /etc/smokeping/config.d/Targets where you&#8217;re able to define the targets that needs to be monitored. The layout of the configuration file is straight-forward. Therefore I won&#8217;t explain the various parameters in detail.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>smokeping$ <span style="color: #c20cb9; font-weight: bold;">cat</span> config.d<span style="color: #000000; font-weight: bold;">/</span>Targets
<span style="color: #000000; font-weight: bold;">***</span> Targets <span style="color: #000000; font-weight: bold;">***</span>                                              
&nbsp;
probe = FPing
&nbsp;
<span style="color: #666666; font-style: italic;">## You have to edit and uncomment all what you want below this.</span>
<span style="color: #666666; font-style: italic;"># Please, refer to smokeping_config man page for more info</span>
<span style="color: #666666; font-style: italic;"># The given adresses aren't real to avoid DoS.                 </span>
&nbsp;
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of Mike Adolphs.
&nbsp;
+ slashdot
&nbsp;
menu = slashdot
title = slashdot
&nbsp;
++ ICMP
&nbsp;
probe = FPing
menu = ICMP
title = ICMP
host = www.slashdot.org
&nbsp;
++ HTTP
&nbsp;
probe = Curl
menu = HTTP
title = HTTP
host = www.slashdot.org
&nbsp;
++ DNS
&nbsp;
probe = DNS
menu = DNS
title = DNS
lookup = www.slashdot.org
server = 141.1.1.1
host = www.slashdot.org</pre></div></div>

<p>As Ubuntu uses speedy-cgi with SmokePing&#8217;s cgi script its interpretation becomes persistent (and much faster in its execution in large environments). Therefore you have to touch /etc/smokeping/config when you&#8217;ve altered the configuration! Otherwise the changed configuration parts in /etc/smokeping/config.d won&#8217;t be recognized.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>smokeping<span style="color: #000000; font-weight: bold;">/</span>config</pre></div></div>

<p>You&#8217;re also free to change the interpreter from /usr/bin/speedy to /usr/bin/perl in the smokeping.cgi to disable the persistent behaviour:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:<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>cgi-bin$ <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n2</span> smokeping.cgi
<span style="color: #666666; font-style: italic;">#!/usr/bin/speedy</span>
<span style="color: #666666; font-style: italic;"># -*-perl-*-</span></pre></div></div>

<p>&#8230; to &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server:<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>cgi-bin$ <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n2</span> smokeping.cgi
<span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #666666; font-style: italic;"># -*-speedy-*-</span></pre></div></div>

<p><a href="http://www.matejunkie.com/wp-content/uploads/2009/02/smokeping_03.png"><img class="alignright size-thumbnail wp-image-717" title="SmokePing - graph exploration" src="http://www.matejunkie.com/wp-content/uploads/2009/02/smokeping_03-150x150.png" alt="SmokePing - graph exploration" width="150" height="150" /></a>One more note on reloading the daemon: In most cases it&#8217;s simply not necessary. SmokePing recognizes changes in the /etc/smokeping/config.d directory during runtime when you&#8217;re using /usr/bin/perl as the interpreter instead of the persistant method with speedy. But as I already said, for me SmokePing is a method to provide longterm monitoring without major changes to the targets. Therefore I don&#8217;t make use of these features and stick to the speedy way. Touching the file is not much of a problem, reloading the daemon a safe way to see whether there are syntax errors in the configuration or not.</p>
<p>If you want more information (you probably will), stick to the <a title="SmokePing documentation" href="http://oss.oetiker.ch/smokeping/doc/index.en.html" target="_blank">official documentation</a> or sign up and dig through the <a title="Smokeping mailing-list archives" href="https://lists.oetiker.ch/pipermail/smokeping-users/" target="_blank">archives</a> of the <a title="SmokePing mailing list" href="http://oss.oetiker.ch/smokeping/support.en.html" target="_blank">mailing list</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matejunkie.com/useful-graphs-with-smokeping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
