SMOKEPING_INSTALL(1)        SmokePing        SMOKEPING_INSTALL(1)



NNNNAAAAMMMMEEEE
       smokeping_install - How to install SmokePing

OOOOVVVVEEEERRRRVVVVIIIIEEEEWWWW
       This document explains how to setup SmokePing at your
       site.

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
       PPPPrrrreeeerrrreeeeqqqquuuuiiiissssiiiitttteeeessss

       SmokePing does not stand alone. It relies on various other
       tools and services being present. Apart from a Unix OS and
       a working Perl installation you need the following things.
       The list contains the names of the tools together with the
       version of the tool which I am using, and a link for down-
       loading the tool.

       RRDtool 1.0.33
           http://people.ee.ethz.ch/~oetiker/webtools/rrd-
           tool/pub/rrdtool-1.0.33.tar.gz

           Just follow the installation instructions. We need
           this package todo all the logging and graphing in
           SmokePing.

       FPing 2.4b2
           http://peo-
           ple.ee.ethz.ch/~oetiker/webtools/smokeping/pub/fping-2.4b2_to.tar.gz

           This is a special version of fping which actually
           builds. I have not modified the code in any way, I
           just fixed the autoconf setup. The original can be
           found on http://www.fping.com/down-
           load/fping-2.4b2.tar.gz

           Note that fping must be installed setuid root. It
           seems that older versions of fping report round trip
           times in 0.1 milliseconds instead of 1 milliseconds as
           advertised ... SmokePing tries to figure this out. It
           tells you when it starts ... let me know it it gets it
           wrong.

       FPing 2.4b2 IPV6 (Optional)
           http://unfix.org/projects/ipv6/fping-2.4b2_to-
           ipv6.tar.gz

           You need this if you want to use the FPing6 probe

       Socket6 0.11-1 (Optional)
           http://www.cpan.org/modules/by-module/Socket6/

           Optionally installing the Socket6 module for perl
           enables smokeping to check hostnames that only resolve
           to an IPv6 address. If you probe such hosts using ie.
           the FPing6 probe and get warnings that those hosts
           don't resolve to an IP address, you need to install
           it.

       EchoPing  (Optional)
           http://echoping.sourceforge.net/

           You need this to run the EchoPing probes

       Webserver
           http://httpd.apache.org/

           Well I wont get much into this. The important thing
           is, to have a webserver which allows you to run CGI
           scripts. If you are using Apache I strongly recommend
           using the _s_u_e_x_e_c system for running CGI scripts. Often
           it is sufficient to change the _s_u_e_x_e_c binary to setuid
           root and restart Apache.  Using _s_u_e_x_e_c allow to run
           cgi scripts under proper user accounts.

       Perl 5.6.1
           http://www.perl.com

           I guess you will get away with older versions of perl.
           I am using 5.6.1 here and it works fine.

       SpeedyCGI
           http://daemoninc.com/speedycgi/

           SpeedyCGI speeds up CGIs written in perl dramatically
           by making them memory resident and handing new request
           to the script which is already running.  SmokePing has
           been optimized for use with SpeedyCGI. Note that you
           do NOT need mod_speedy, just the plain and simple
           speedy executable, this is the beauty of this tool it
           works without touching your apache ...  Otherwise you
           could as well be using FastCGI or mod_perl.

       IIIInnnnssssttttaaaallllllllaaaattttiiiioooonnnn

       Once the tools listed above are in place, you can start
       setting up SmokePing itself. Once the SmokePing tools are
       unpacked, they are more of less ready to use. At least to
       the extent, that it is not necessary to iiiinnnnssssttttaaaallllllll them.  You
       may want to rename the directory to a name which does not
       contain the version number of SmokePing, or at least make
       a symlink, so that you can use a persistent name when
       referring to SmokePing files.

       In the distribution you find a number of files named
       _*_._d_i_s_t they have to be edited and renamed to _*. Below you
       find a short explanation for each of the files you have to
       edit:

       _b_i_n_/_s_m_o_k_e_p_i_n_g
           Make sure all the required libraries are available and
           the first line of the script points to your copy of
           perl. Adjust the uuuusssseeee lllliiiibbbb lines to point to your RRRRRRRRDDDD----
           ttttoooooooollll installation and to the SSSSmmmmooookkkkeeeeppppiiiinnnngggg////lllliiiibbbb directory
           and edit the path of the config file to be in sync
           with reality.

       _h_t_d_o_c_s_/_s_m_o_k_e_p_i_n_g_._c_g_i
           Edit the _s_m_o_k_e_p_i_n_g_._c_g_i analog to the _s_m_o_k_e_p_i_n_g script
           above. Make sure the first line of the script is
           pointing to your freshly installed copy of Speedy CGI.
           Store the script in a directory of your weberver where
           CGIs get executed. You also have to edit the uuuusssseeee lllliiiibbbb
           line similar to what you did to _s_m_o_k_e_p_i_n_g

       _e_t_c_/_c_o_n_f_i_g
           Create your SmokePing configuration file. The easiest
           is to copy the _e_t_c_/_c_o_n_f_i_g file and work from there.
           Please refer to the smokeping_config manpage for
           details.

       _e_t_c_/_b_a_s_e_p_a_g_e_._h_t_m_l
           Edit the html template to your likings. Please do not
           remove the link to the SmokePing counter and my name
           from the template.

       _e_t_c_/_s_m_o_k_e_m_a_i_l
           If you are going to use the DDDDYYYYNNNNAAAAMMMMIIIICCCC IP support, cus-
           tomize the contents of this file.

       Now you are ready to start smokeping:

        ./bin/smokeping

       Once the system works, you may want to put a SmokePing
       startup script into your _/_e_t_c_/_i_n_i_t_._d tree. Check out the
       smokeping manpage for further information.

       When you can now also open the smokeping.cgi webpage to
       look at your data.

CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
       Copyright (c) 2001 by Tobias Oetiker. All right reserved.

LLLLIIIICCCCEEEENNNNSSSSEEEE
       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.

       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.

       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.

AAAAUUUUTTTTHHHHOOOORRRR
       Tobias Oetiker <tobi@oetiker.ch>



2002-04-29                     1.12          SMOKEPING_INSTALL(1)
