Introduction

Smokeping is a package that enables the pinging and plotting of hosts. It has a nice presentation frontend that visually shows the quality of the selected link.

Installation

Smokeping was installed on nettest5 on /opt/smokeping.

Smokeping

http://oss.oetiker.ch/smokeping/pub/smokeping-2.0.9.tar.gz
[ytl@nettest5:/opt/smokeping/]$ tar xvfz smokeping-2.0.9.tar.gz
[ytl@nettest5:/opt/smokeping/]$ ln -sf smokeping-2.0.9 current

RRDTools

See RRDTools Installation

FPing

[ytl@nettest5:/opt/fping/current]$ ./configure --prefix=/opt/fping/current/
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking for gethostbyname... yes
checking for connect... yes
checking for unistd.h... yes
checking for sys/file.h... yes
checking for stdlib.h... yes
checking for sys/select.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
[ytl@nettest5:/opt/fping/current]$ make
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c fping.c
gcc  -g -O2  -o fping  fping.o  
[ytl@nettest5:/opt/fping/current]$ make install
make[1]: Entering directory `/opt/fping/fping-2.4b2_to'
/bin/sh ./mkinstalldirs /opt/fping/current//sbin
mkdir /opt/fping/current/sbin
  /usr/bin/install -c  fping /opt/fping/current//sbin/fping
make  install-man8
make[2]: Entering directory `/opt/fping/fping-2.4b2_to'
/bin/sh ./mkinstalldirs /opt/fping/current//man/man8
mkdir /opt/fping/current/man
mkdir /opt/fping/current/man/man8
 /usr/bin/install -c -m 644 ./fping.8 /opt/fping/current//man/man8/fping.8
make[2]: Leaving directory `/opt/fping/fping-2.4b2_to'
make[1]: Leaving directory `/opt/fping/fping-2.4b2_to'

Changed sticky bit on fping

[ytl@nettest5:/opt/fping/current]$ ./fping 
This program can only be run by root, or it must be setuid root.
[ytl@nettest5:/opt/fping/current]$ sudo chown root:root fping
[ytl@nettest5:/opt/fping/current]$ sudo chmod ug+s fping
[ytl@nettest5:/opt/fping/current]$ ./fping --help
./fping: invalid option -- -

Usage: ./fping [options] [targets...]
   -a         show targets that are alive
   -A         show targets by address
   -b n       amount of ping data to send, in bytes (default 56)
   -B f       set exponential backoff factor to f
   -c n       count of pings to send to each target (default 1)
   -C n       same as -c, report results in verbose format
   -e         show elapsed time on return packets
   -f file    read list of targets from a file ( - means stdin) (only if no -g specified)
   -g         generate target list (only if no -f specified)
                (specify the start and end IP in the target list, or supply a IP netmask)
                (ex. ./fping -g 192.168.1.0 192.168.1.255 or ./fping -g 192.168.1.0/24)
   -i n       interval between sending ping packets (in millisec) (default 25)
   -l         loop sending pings forever
   -m         ping multiple interfaces on target host
   -n         show targets by name (-d is equivalent)
   -p n       interval between ping packets to one target (in millisec)
                (in looping and counting modes, default 1000)
   -q         quiet (don't show per-target/per-ping results)
   -Q n       same as -q, but show summary every n seconds
   -r n       number of retries (default 3)
   -s         print final stats
   -t n       individual target initial timeout (in millisec) (default 500)
   -u         show targets that are unreachable
   -v         show version
   targets    list of targets to check (if no -f specified)

SpeedyCGI

[ytl@nettest5:/opt/speedycgi/CGI-SpeedyCGI-2.22]$ perl Makefile.PL PREFIX=/opt/speedycgi/current/

Optional mod_speedycgi support.

Mod_speedycgi increases performance under Apache by avoiding the fork/exec
overhead associated with each request under normal SpeedyCGI.  However, it
requires a working copy of "apxs" in your path, Apache with mod_so
support, and additional Apache configuration.

Compile mod_speedycgi (default no)? 
Checking if your kit is complete...
Looks good
Writing Makefile for src
Writing Makefile for speedy_backend
Writing Makefile for speedy
Writing Makefile for CGI::SpeedyCGI
[ytl@nettest5:/opt/speedycgi/CGI-SpeedyCGI-2.22]$ make
cd src && make
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/src'
/afs/slac.stanford.edu/package/perl/5.8.8/i386_linux24/bin/perl -w optdefs.pl /afs/.slac.stanford.edu/package/perl/5.8.8/bin
Writing speedy_optdefs.c
Writing speedy_optdefs.h
Writing mod_speedycgi_cmds.c
Writing mod_speedycgi2_cmds.c
Writing SpeedyCGI.pm
make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/src'
cp src/SpeedyCGI.pm blib/lib/CGI/SpeedyCGI.pm
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/src'
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy_backend'
rm -f speedy_backend_main.c
cp ../src/speedy_backend_main.c speedy_backend_main.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_backend_main.c
rm -f speedy_perl.c
cp ../src/speedy_perl.c speedy_perl.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_perl.c
speedy_perl.c: In function `onerun':
speedy_perl.c:808: warning: comparison between pointer and integer
speedy_perl.c:809: warning: comparison between pointer and integer
speedy_perl.c:810: warning: comparison between pointer and integer
rm -f speedy_util.c
cp ../src/speedy_util.c speedy_util.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_util.c
rm -f speedy_sig.c
cp ../src/speedy_sig.c speedy_sig.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_sig.c
rm -f speedy_frontend.c
cp ../src/speedy_frontend.c speedy_frontend.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_frontend.c
rm -f speedy_backend.c
cp ../src/speedy_backend.c speedy_backend.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_backend.c
rm -f speedy_file.c
cp ../src/speedy_file.c speedy_file.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_file.c
rm -f speedy_slot.c
cp ../src/speedy_slot.c speedy_slot.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_slot.c
rm -f speedy_poll.c
cp ../src/speedy_poll.c speedy_poll.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_poll.c
rm -f speedy_ipc.c
cp ../src/speedy_ipc.c speedy_ipc.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_ipc.c
rm -f speedy_group.c
cp ../src/speedy_group.c speedy_group.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_group.c
rm -f speedy_script.c
cp ../src/speedy_script.c speedy_script.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_script.c
rm -f speedy_opt.c
cp ../src/speedy_opt.c speedy_opt.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_opt.c
rm -f speedy_optdefs.c
cp ../src/speedy_optdefs.c speedy_optdefs.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_optdefs.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND xsinit.c
rm -f speedy_backend
cc -o speedy_backend speedy_backend_main.o speedy_perl.o speedy_util.o speedy_sig.o speedy_frontend.o speedy_backend.o speedy_file.o speedy_slot.o speedy_poll.o speedy_ipc.o speedy_group.o speedy_script.o speedy_opt.o speedy_optdefs.o xsinit.o  -Wl,-E  -L/usr/local/lib /afs/slac.stanford.edu/package/perl/5.8.8/lib/5.8.8/i386_linux24/auto/DynaLoader/DynaLoader.a -L/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc
/bin/sh -c true
echo ''

make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy_backend'
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy'
rm -f speedy_main.c
cp ../src/speedy_main.c speedy_main.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_main.c
rm -f speedy_cb.c
cp ../src/speedy_cb.c speedy_cb.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_cb.c
rm -f speedy_circ.c
cp ../src/speedy_circ.c speedy_circ.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_circ.c
rm -f speedy_util.c
cp ../src/speedy_util.c speedy_util.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_util.c
rm -f speedy_sig.c
cp ../src/speedy_sig.c speedy_sig.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_sig.c
speedy_sig.c: In function `speedy_sig_wait':
speedy_sig.c:71: warning: passing arg 2 of `memcpy' discards qualifiers from pointer target type
rm -f speedy_frontend.c
cp ../src/speedy_frontend.c speedy_frontend.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_frontend.c
rm -f speedy_backend.c
cp ../src/speedy_backend.c speedy_backend.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_backend.c
rm -f speedy_file.c
cp ../src/speedy_file.c speedy_file.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_file.c
rm -f speedy_slot.c
cp ../src/speedy_slot.c speedy_slot.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_slot.c
rm -f speedy_poll.c
cp ../src/speedy_poll.c speedy_poll.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_poll.c
rm -f speedy_ipc.c
cp ../src/speedy_ipc.c speedy_ipc.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_ipc.c
rm -f speedy_group.c
cp ../src/speedy_group.c speedy_group.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_group.c
rm -f speedy_script.c
cp ../src/speedy_script.c speedy_script.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_script.c
rm -f speedy_opt.c
cp ../src/speedy_opt.c speedy_opt.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_opt.c
speedy_opt.c: In function `speedy_opt_exec_argv':
speedy_opt.c:479: warning: assignment discards qualifiers from pointer target type
rm -f speedy_optdefs.c
cp ../src/speedy_optdefs.c speedy_optdefs.c
cc -c  -I../src -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fpic "-I/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE"  -DSPEEDY_PROGNAME=\"speedy\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_FRONTEND speedy_optdefs.c
rm -f speedy
../util/remove_libs cc -o speedy speedy_main.o speedy_cb.o speedy_circ.o speedy_util.o speedy_sig.o speedy_frontend.o speedy_backend.o speedy_file.o speedy_slot.o speedy_poll.o speedy_ipc.o speedy_group.o speedy_script.o speedy_opt.o speedy_optdefs.o  -Wl,-E  -L/usr/local/lib /afs/slac.stanford.edu/package/perl/5.8.8/lib/5.8.8/i386_linux24/auto/DynaLoader/DynaLoader.a -L/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc
Attempting to remove extraneous libraries from the speedy binary...
removed /afs/slac.stanford.edu/package/perl/5.8.8/lib/5.8.8/i386_linux24/auto/DynaLoader/DynaLoader.a
removed -lperl
removed -lnsl
removed -ldl
removed -lm
removed -lcrypt
removed -lutil
removed -lc
Final command is cc -o speedy speedy_main.o speedy_cb.o speedy_circ.o speedy_util.o speedy_sig.o speedy_frontend.o speedy_backend.o speedy_file.o speedy_slot.o speedy_poll.o speedy_ipc.o speedy_group.o speedy_script.o speedy_opt.o speedy_optdefs.o -Wl,-E -L/usr/local/lib -L/afs/slac.stanford.edu/package/perl/lib/5.8.8/i386_linux24/CORE
/bin/sh -c true
echo ''

make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy'
cp speedy_backend/speedy_backend blib/script/speedy_backend
/afs/slac.stanford.edu/package/perl/5.8.8/i386_linux24/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/speedy_backend
cp speedy/speedy blib/script/speedy
/afs/slac.stanford.edu/package/perl/5.8.8/i386_linux24/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/speedy
[ytl@nettest5:/opt/speedycgi/CGI-SpeedyCGI-2.22]$ make install
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/src'
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy_backend'
make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy_backend'
make[1]: Entering directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy'
make[1]: Leaving directory `/opt/speedycgi/CGI-SpeedyCGI-2.22/speedy'
Installing /opt/speedycgi/current/lib/site_perl/CGI/SpeedyCGI.pm
Installing /opt/speedycgi/current/bin/speedy_backend
Installing /opt/speedycgi/current/bin/speedy
Writing /opt/speedycgi/current//lib/site_perl/5.8.8/i386_linux24/auto/CGI/SpeedyCGI/.packlist
Appending installation info to /opt/speedycgi/current//lib/5.8.8/i386_linux24/perllocal.pod

Smokeping

Smokeping executable

[ytl@nettest5:/opt/smokeping/current/bin]$ cp smokeping.dist smokeping      
`smokeping.dist' -> `smokeping'

Edited the use lib statement to

use lib qw(/opt/smokeping/current/lib);

Smokeping.cgi

[ytl@nettest5:/opt/smokeping/current/htdocs]$ cp smokeping.cgi.dist smokeping.cg
i
#use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);
use lib qw(/opt/speedycgi/current//lib/);
#use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib);
use lib qw(/opt/smokeping/current/lib);

basepage.html

[ytl@nettest5:/opt/smokeping/current/etc]$ cp basepage.html.dist basepage.html

No changes

Smokemail

[ytl@nettest5:/opt/smokeping/current/etc]$ cp smokemail.dist smokemail  

No changes

Config

[ytl@nettest5:/opt/smokeping/current/etc]$ cp config.dist config 
*** General ***

owner    = Yee-Ting Li
contact  = ytl@slac.stanford.edu
mailhost = smtp.slac.stanford.edu
sendmail = /usr/lib/sendmail
imgcache = /opt/smokeping/current/public_html/.simg
imgurl   = ../.simg
datadir  = /opt/smokeping/var/
piddir  = /opt/smokeping/var/
cgiurl   = http://people.ee.ethz.ch/~oetiker/smokeping/smokeping.cgi
smokemail = /opt/smokeping/current/etc/smokemail
tmail = /opt/smokeping/smokeping/etc/tmail
# specify this to get syslog logging
# syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no

*** Alerts ***
to = iepm-l@slac.stanford.edu
from = smokealert@slac.stanford.edu

*** Presentation ***

template = /opt/smokeping/current/etc/basepage.html

*** Probes ***

+ FPing

binary = /opt/fping/current/fping
  • No labels