Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d97b4c58d8763adc61a7b020afdfd868 > files > 215

smokeping-2.4.2-9mdv2010.0.noarch.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>smoketrace</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">

<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<!--

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#setup">SETUP</a></li>
	<li><a href="#copyright">COPYRIGHT</a></li>
	<li><a href="#license">LICENSE</a></li>
	<li><a href="#author">AUTHOR</a></li>
</ul>
-->
<!-- INDEX END -->

<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>SmokeTrace - Ajax based Traceroute for Smokeping</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>SmokeTraceoute is an browser based traceroute application written in the
Qooxdoo. You can easily activate it in your Smokeping setup, to allow
users to traceroute smokeping targets directly from the master host.</p>
<p>
</p>
<hr />
<h1><a name="setup">SETUP</a></h1>
<p>To activate SmokeTrace you have to copy a few files to your webserver.</p>
<ol>
<li>
<p>Make sure your webserver can execute cgi files outside the cgi-bin
directory. Maybe it is enough to create a <em>.htaccess</em> file with the
following contents into the smokeping web directory ($web).</p>
<pre>
 AddHandler cgi-script cgi
 Options ExecCGI</pre>
</li>
<li>
<p>Copy <code>htdocs/script/Tr.js</code> to your smokeping web directory (NOT the cgi-bin
directory!).</p>
<pre>
 mkdir $web/script
 cp $src/htdocs/script/Tr.js $web/script/</pre>
</li>
<li>
<p>Copy <code>htdocs/tr.html</code> to your smokeping web directory (NOT cgi-bin). Make
sure the path, pointing to <code>Tr.js</code> is correct.</p>
<pre>
 cp $src/htdocs/tr.html $web/</pre>
</li>
<li>
<p>Copy <code>htdocs/resource</code> into the directory where you put <code>tr.html</code></p>
<pre>
 cp -r $src/htdocs/resource $web/</pre>
</li>
<li>
<p>Copy <em>htdocs/tr.cgi.dist</em> to the directory where you put <code>tr.html</code>. Change
its name to <code>tr.cgi</code>. Edit <code>tr.cgi</code> to adjust the <code>use lib</code> line, to
point to the smokeping perl library directory, as you did with
<code>smokeping.cgi</code> and the smokeping daemon.
</p>
<pre>

 cp $src/htdocs/tr.cgi.dist $web/tr.cgi</pre>
</li>
<li>
<p>Edit your config file and add the line:</p>
<pre>
 menuextra = &lt;a target='_blank' href='tr.html{HOST}' class='{CLASS}' \
    onclick=&quot;window.open(this.href,this.target, \
    'width=800,height=500,toolbar=no,location=no,status=no,scrollbars=no'); \
    return false;&quot;&gt;*&lt;/a&gt;</pre>
<p>to your <code>*** Targets ***</code> section. It will make a <code>*</code> appear next to each
host name, and when you click on it, the SmokeTrace window will open.</p>
<p>Note that the <code>href</code> atribut must point to the directory where you put the
<code>tr.html</code> file.</p>
</li>
</ol>
<p>Not you should be all set. Try calling <code>tr.cgi</code> from your webbrowser. You
should get some error message about not having sent a JSON request.</p>
<p>
</p>
<hr />
<h1><a name="copyright">COPYRIGHT</a></h1>
<p>Copyright (c) 2008 by Tobias Oetiker. All rights reserverd.</p>
<p>
</p>
<hr />
<h1><a name="license">LICENSE</a></h1>
<p>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; either
version 2 of the License, or (at your option) any later
version.</p>
<p>This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the GNU General Public License for more
details.</p>
<p>You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
02139, USA.</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Tobi Oetiker  &lt;<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>&gt;</p>

</body>

</html>