summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-06-13 23:34:28 +0200
committerTobi Oetiker <tobi@oetiker.ch>2008-06-13 23:34:28 +0200
commit4ac6bf769b09ba7bd39778297f0e9699ee263256 (patch)
tree76987b7cec1c77d522ce62e890605017a84c11f4 /doc
parent64d0fc90d7df5a188a5ce9ed9cd562f76d7b139f (diff)
downloadsmokeping-4ac6bf769b09ba7bd39778297f0e9699ee263256.tar.gz
smokeping-4ac6bf769b09ba7bd39778297f0e9699ee263256.tar.xz
prepare for the release of smokeping-2.4.1
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/smoketrace.pod44
1 files changed, 34 insertions, 10 deletions
diff --git a/doc/smoketrace.pod b/doc/smoketrace.pod
index 6f0374b..8ff24bd 100755
--- a/doc/smoketrace.pod
+++ b/doc/smoketrace.pod
@@ -10,30 +10,48 @@ users to traceroute smokeping targets directly from the master host.
=head1 SETUP
-To activate SmokeTrace you just have to copy a few files:
+To activate SmokeTrace you have to copy a few files to your webserver.
=over
=item 1.
-Copy C<htdocs/script/Tr.js> to your smokeping web directory.
+Make sure your webserver can execute cgi files outside the cgi-bin
+directory. Maybe it is enough to create a F<.htaccess> file with the
+following contents into the smokeping web directory ($web).
+
+ AddHandler cgi-script cgi
+ Options ExecCGI
+
+=item 2.
+
+Copy C<htdocs/script/Tr.js> to your smokeping web directory (NOT the cgi-bin
+directory!).
+
+ mkdir $web/script
+ cp $src/htdocs/script/Tr.js $web/script/
=item 2.
-Copy and edit C<htdocs/tr.html> to your smokeping web directory. Make
-sure the path to C<Tr.js> is correct.
+Copy C<htdocs/tr.html> to your smokeping web directory (NOT cgi-bin). Make
+sure the path, pointing to C<Tr.js> is correct.
+
+ cp $src/htdocs/tr.html $web/
=item 3.
-Copy C<htdocs/resource> into the directory where you put C<tr.html>.
+Copy C<htdocs/resource> into the directory where you put C<tr.html>
+
+ cp -r $src/htdocs/resource $web/
=item 4.
-Copy F<htdocs/tr.cgi.dist> to the directory where you put
-C<tr.html>. Change its name to C<tr.cgi>. Edit C<tr.cgi> to adjust
-the C<use lib> line, to point to the smokeping perl library directory, as you did
-with C<smokeping.cgi>. Make sure the webserver actually executes the
-C<tr.cgi> script.
+Copy F<htdocs/tr.cgi.dist> to the directory where you put C<tr.html>. Change
+its name to C<tr.cgi>. Edit C<tr.cgi> to adjust the C<use lib> line, to
+point to the smokeping perl library directory, as you did with
+C<smokeping.cgi> and the smokeping daemon.
+
+ cp $src/htdocs/tr.cgi.dist $web/tr.cgi
=item 5.
@@ -47,8 +65,14 @@ Edit your config file and add the line:
to your C<*** Targets ***> section. It will make a C<*> appear next to each
host name, and when you click on it, the SmokeTrace window will open.
+Note that the C<href> atribut must point to the directory where you put the
+C<tr.html> file.
+
=back
+Not you should be all set. Try calling C<tr.cgi> from your webbrowser. You
+should get some error message about not having sent a JSON request.
+
=head1 COPYRIGHT
Copyright (c) 2008 by Tobias Oetiker. All rights reserverd.