サーバのログ監視ツール Swatch を導入にてみます。
最終的には 自分の使い勝手の良いものだけを使うつもりで・・・
実際、自分で試してみない事には 何もはじまらない
p(^_^)q
swatchには Perl5のほかに 下記の追加モジュールが必要となります。
●Date::Calc
●Date::Parse
●File::Tail
●Time::HiRes
最初に この4つのモジュールをインストールしました。(CPANから直にインストールする方法を選択)
※Date::Calc のmake test でエラーが出ていますが・・・そのまま、次に進み 後ほど /usr/local/srcに
ソースを落として実行しました。
一番最初 起動時にはいろいろ聞かれます^^;
こちら
CPANから【Time::JulianDay】をインストール もご参考にm(__)m
[root@localhost src]
# perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules
installation (v1.61)
ReadLine support available (try 'install
Bundle::CPAN')
cpan> i
nstall Date::Calc
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 29 Jul 2003
20:16:30 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 18 Aug 2003
20:44:46 GMT
There's a new CPAN.pm version (v1.76) available!
[Current version is v1.61]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It
should be a seamless upgrade
while we are running...
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Date::Calc
Running make for S/ST/STBEY/Date-Calc-5.3.tar.gz
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/id/S/ST/STBEY/Date-Calc-5.3.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/id/S/ST/STBEY/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/S/ST/STBEY/Date-Calc-5.3.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
Date-Calc-5.3/
Date-Calc-5.3/examples/
Date-Calc-5.3/examples/weiberfastnacht.pl
Date-Calc-5.3/examples/vacation.pl
Date-Calc-5.3/examples/anniversaries.pl
Date-Calc-5.3/examples/calendar.cgi
Date-Calc-5.3/examples/cal.c
Date-Calc-5.3/examples/income.pl
Date-Calc-5.3/examples/holidays.pl
Date-Calc-5.3/examples/age_in_days_us.pl
Date-Calc-5.3/examples/age_in_days_eu.pl
Date-Calc-5.3/examples/delta.pl
Date-Calc-5.3/examples/nth_weekday.pl
Date-Calc-5.3/examples/linearcal.pl
Date-Calc-5.3/examples/time.pl
Date-Calc-5.3/CHANGES.txt
Date-Calc-5.3/lib/
Date-Calc-5.3/lib/Date/
Date-Calc-5.3/lib/Date/Calc/
Date-Calc-5.3/lib/Date/Calc/Object.pod
Date-Calc-5.3/lib/Date/Calc/Object.pm
Date-Calc-5.3/lib/Date/Calendar/
Date-Calc-5.3/lib/Date/Calendar/Year.pm
Date-Calc-5.3/lib/Date/Calendar/Profiles.pm
Date-Calc-5.3/lib/Date/Calendar/Profiles.pod
Date-Calc-5.3/lib/Date/Calendar/Year.pod
Date-Calc-5.3/lib/Carp/
Date-Calc-5.3/lib/Carp/Clan.pod
Date-Calc-5.3/lib/Carp/Clan.pm
Date-Calc-5.3/t/
Date-Calc-5.3/t/f002.t
Date-Calc-5.3/t/f017.t
Date-Calc-5.3/t/f009.t
Date-Calc-5.3/t/m008.t
Date-Calc-5.3/t/f022.t
Date-Calc-5.3/t/f027.t
Date-Calc-5.3/t/m011.t
Date-Calc-5.3/t/f011.t
Date-Calc-5.3/t/f004.t
Date-Calc-5.3/t/f029.t
Date-Calc-5.3/t/f032.t
Date-Calc-5.3/t/f000.t
Date-Calc-5.3/t/m010.t
Date-Calc-5.3/t/f025.t
Date-Calc-5.3/t/f005.t
Date-Calc-5.3/t/m001.t
Date-Calc-5.3/t/f006.t
Date-Calc-5.3/t/f008.t
Date-Calc-5.3/t/f012.t
Date-Calc-5.3/t/f035.t
Date-Calc-5.3/t/f019.t
Date-Calc-5.3/t/f015.t
Date-Calc-5.3/t/f007.t
Date-Calc-5.3/t/m005.t
Date-Calc-5.3/t/m003.t
Date-Calc-5.3/t/m002.t
Date-Calc-5.3/t/m004.t
Date-Calc-5.3/t/f003.t
Date-Calc-5.3/t/f018.t
Date-Calc-5.3/t/m006.t
Date-Calc-5.3/t/f034.t
Date-Calc-5.3/t/m009.t
Date-Calc-5.3/t/f021.t
Date-Calc-5.3/t/m007.t
Date-Calc-5.3/t/f014.t
Date-Calc-5.3/t/f031.t
Date-Calc-5.3/t/f030.t
Date-Calc-5.3/t/f013.t
Date-Calc-5.3/t/f016.t
Date-Calc-5.3/t/f020.t
Date-Calc-5.3/t/f001.t
Date-Calc-5.3/t/f033.t
Date-Calc-5.3/t/f028.t
Date-Calc-5.3/t/f026.t
Date-Calc-5.3/t/f036.t
Date-Calc-5.3/t/f010.t
Date-Calc-5.3/t/f023.t
Date-Calc-5.3/t/f024.t
Date-Calc-5.3/MANIFEST
Date-Calc-5.3/typemap
Date-Calc-5.3/tools/
Date-Calc-5.3/tools/pc2iso.c
Date-Calc-5.3/tools/compile.sh
Date-Calc-5.3/tools/iso2pc.c
Date-Calc-5.3/tools/compile.pl
Date-Calc-5.3/tools/compile.bat
Date-Calc-5.3/Calc.pod
Date-Calc-5.3/ToolBox.h
Date-Calc-5.3/Calendar.pm
Date-Calc-5.3/EXAMPLES.txt
Date-Calc-5.3/INSTALL.txt
Date-Calc-5.3/DateCalc.c
Date-Calc-5.3/README.txt
Date-Calc-5.3/GNU_LGPL.txt
Date-Calc-5.3/Artistic.txt
Date-Calc-5.3/GNU_GPL.txt
Date-Calc-5.3/TOOLS.txt
Date-Calc-5.3/Calendar.pod
Date-Calc-5.3/DateCalc.h
Date-Calc-5.3/CREDITS.txt
Date-Calc-5.3/Calc.xs
Date-Calc-5.3/Calc.pm
Date-Calc-5.3/Makefile.PL
CPAN.pm: Going to build S/ST/STBEY/Date-Calc-5.3.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite Bit::Vector 5.7 not
found.
Writing Makefile for Date::Calc
Writing patchlevel.h for /usr/bin/perl (5.008)
---- Unsatisfied dependencies detected during
[S/ST/STBEY/Date-Calc-5.3.tar.gz] -----
Bit::Vector
Shall I follow them and prepend them to the
queue
of modules we are processing right now? [yes]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module Bit::Vector
Running make for S/ST/STBEY/Bit-Vector-6.3.tar.gz
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/id/S/ST/STBEY/Bit-Vector-6.3.tar.gz
Checksum for /root/.cpan/sources/authors/id/S/ST/STBEY/Bit-Vector-6.3.tar.gz
ok
Bit-Vector-6.3/
Bit-Vector-6.3/examples/
Bit-Vector-6.3/examples/benchmark.pl
Bit-Vector-6.3/examples/SetObject.pl
Bit-Vector-6.3/examples/primes.pl
Bit-Vector-6.3/examples/test.c
Bit-Vector-6.3/BitVector.c
Bit-Vector-6.3/Vector.pod
Bit-Vector-6.3/GNU_LGPL.txt
Bit-Vector-6.3/t/
Bit-Vector-6.3/t/01________new.t
Bit-Vector-6.3/t/03_operations.t
Bit-Vector-6.3/t/30_overloaded.t
Bit-Vector-6.3/t/15________add.t
Bit-Vector-6.3/t/02____destroy.t
Bit-Vector-6.3/t/05_____primes.t
Bit-Vector-6.3/t/12_____string.t
Bit-Vector-6.3/t/08_____resize.t
Bit-Vector-6.3/t/10__intervals.t
Bit-Vector-6.3/t/11______shift.t
Bit-Vector-6.3/t/04__functions.t
Bit-Vector-6.3/t/09_parameters.t
Bit-Vector-6.3/t/28__chunklist.t
Bit-Vector-6.3/t/00____version.t
Bit-Vector-6.3/t/13__increment.t
Bit-Vector-6.3/t/07____compare.t
Bit-Vector-6.3/t/16___subtract.t
Bit-Vector-6.3/t/17________gcd.t
Bit-Vector-6.3/t/14______empty.t
Bit-Vector-6.3/t/06_____subset.t
Bit-Vector-6.3/BitVector.h
Bit-Vector-6.3/lib/
Bit-Vector-6.3/lib/Carp/
Bit-Vector-6.3/lib/Carp/Clan.pod
Bit-Vector-6.3/lib/Carp/Clan.pm
Bit-Vector-6.3/lib/Bit/
Bit-Vector-6.3/lib/Bit/Vector/
Bit-Vector-6.3/lib/Bit/Vector/Overload.pm
Bit-Vector-6.3/lib/Bit/Vector/Overload.pod
Bit-Vector-6.3/MANIFEST
Bit-Vector-6.3/GNU_GPL.txt
Bit-Vector-6.3/CREDITS.txt
Bit-Vector-6.3/ToolBox.h
Bit-Vector-6.3/Vector.pm
Bit-Vector-6.3/typemap
Bit-Vector-6.3/INSTALL.txt
Bit-Vector-6.3/CHANGES.txt
Bit-Vector-6.3/Makefile.PL
Bit-Vector-6.3/Vector.xs
Bit-Vector-6.3/Artistic.txt
Bit-Vector-6.3/README.txt
CPAN.pm: Going to build S/ST/STBEY/Bit-Vector-6.3.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Bit::Vector
Writing patchlevel.h for /usr/bin/perl (5.008)
cp lib/Carp/Clan.pm blib/lib/Carp/Clan.pm
cp lib/Bit/Vector/Overload.pm blib/lib/Bit/Vector/Overload.pm
cp Vector.pm blib/lib/Bit/Vector.pm
cp lib/Carp/Clan.pod blib/lib/Carp/Clan.pod
cp lib/Bit/Vector/Overload.pod blib/lib/Bit/Vector/Overload.pod
cp Vector.pod blib/lib/Bit/Vector.pod
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-g -DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CO
RE" BitVector.c
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp
-typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap
-
typemap typemap Vector.xs > Vector.xsc
&& mv Vector.xsc Vector.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-g -DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CO
RE" Vector.c
Running Mkbootstrap for Bit::Vector ()
chmod 644 Vector.bs
rm -f blib/arch/auto/Bit/Vector/Vector.so
LD_RUN_PATH="" gcc -shared -L/usr/local/lib
BitVector.o Vector.o -o blib/arch/auto/Bit/Vector/Vect
or.so
chmod 755 blib/arch/auto/Bit/Vector/Vector.so
cp Vector.bs blib/arch/auto/Bit/Vector/Vector.bs
chmod 644 blib/arch/auto/Bit/Vector/Vector.bs
Manifying blib/man3/Carp::Clan.3pm
Manifying blib/man3/Bit::Vector.3pm
Manifying blib/man3/Bit::Vector::Overload.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib',
'blib/ar
ch')" t/*.t
t/00____version....ok
t/01________new....ok
t/02____destroy....ok
t/03_operations....ok
t/04__functions....ok
t/05_____primes....ok
t/06_____subset....ok
t/07____compare....ok
t/08_____resize....ok
t/09_parameters....ok
t/10__intervals....ok
t/11______shift....ok
t/12_____string....ok
t/13__increment....ok
t/14______empty....ok
t/15________add....ok
t/16___subtract....ok
t/17________gcd....ok
t/28__chunklist....ok
t/30_overloaded....ok
All tests successful.
Files=20, Tests=67417, 275 wallclock secs
(21.64 cusr + 1.27 csys = 22.91 CPU)
/usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bit/Vector/Vector.so
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bit/Vector/Vector.bs
Files found in blib/arch: installing files
in blib/lib into architecture dependent library
tree
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Carp/Clan.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Carp/Clan.pod
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Bit/Vector.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Bit/Vector.pod
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Bit/Vector/Overload.pm
Installing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Bit/Vector/Overload.pod
Installing /usr/share/man/man3/Carp::Clan.3pm
Installing /usr/share/man/man3/Bit::Vector.3pm
Installing /usr/share/man/man3/Bit::Vector::Overload.3pm
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Bit/Vector/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK
Running make for S/ST/STBEY/Date-Calc-5.3.tar.gz
Is already unwrapped into directory /root/.cpan/build/Date-Calc-5.3
CPAN.pm: Going to build S/ST/STBEY/Date-Calc-5.3.tar.gz
cp lib/Date/Calc/Object.pod blib/lib/Date/Calc/Object.pod
cp lib/Date/Calendar/Year.pm blib/lib/Date/Calendar/Year.pm
cp Calc.pod blib/lib/Date/Calc.pod
cp lib/Carp/Clan.pm blib/lib/Carp/Clan.pm
cp lib/Carp/Clan.pod blib/lib/Carp/Clan.pod
cp lib/Date/Calc/Object.pm blib/lib/Date/Calc/Object.pm
cp lib/Date/Calendar/Profiles.pm blib/lib/Date/Calendar/Profiles.pm
cp Calendar.pod blib/lib/Date/Calendar.pod
cp Calc.pm blib/lib/Date/Calc.pm
cp lib/Date/Calendar/Profiles.pod blib/lib/Date/Calendar/Profiles.pod
cp lib/Date/Calendar/Year.pod blib/lib/Date/Calendar/Year.pod
cp Calendar.pm blib/lib/Date/Calendar.pm
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp
-typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap
-
typemap typemap Calc.xs > Calc.xsc &&
mv Calc.xsc Calc.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-g -DVERSION=\"5.3\" -DXS_VERSION=\"5.3\"
-fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CO
RE" Calc.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/loca
l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-g -DVERSION=\"5.3\" -DXS_VERSION=\"5.3\"
-fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CO
RE" DateCalc.c
Running Mkbootstrap for Date::Calc ()
chmod 644 Calc.bs
rm -f blib/arch/auto/Date/Calc/Calc.so
LD_RUN_PATH="" gcc -shared -L/usr/local/lib
Calc.o DateCalc.o -o blib/arch/auto/Date/Calc/Calc.so
chmod 755 blib/arch/auto/Date/Calc/Calc.so
cp Calc.bs blib/arch/auto/Date/Calc/Calc.bs
chmod 644 blib/arch/auto/Date/Calc/Calc.bs
Manifying blib/man3/Carp::Clan.3pm
Manifying blib/man3/Date::Calc::Object.3pm
Manifying blib/man3/Date::Calc.3pm
Manifying blib/man3/Date::Calendar.3pm
Manifying blib/man3/Date::Calendar::Year.3pm
Manifying blib/man3/Date::Calendar::Profiles.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib',
'blib/ar
ch')" t/*.t
t/f000....ok
t/f001....ok
t/f002....ok
t/f003....ok
t/f004....ok
t/f005....ok
t/f006....ok
t/f007....ok
t/f008....ok
t/f009....ok
t/f010....ok
t/f011....ok
t/f012....ok
t/f013....ok
t/f014....ok
t/f015....ok
t/f016....ok
t/f017....ok
t/f018....ok
t/f019....ok
t/f020....ok
t/f021....ok
t/f022....ok
t/f023....ok
t/f024....ok
t/f025....ok
t/f026....ok
t/f027....ok
t/f028....ok
t/f029....ok
t/f030....ok
t/f031....ok
t/f032....ok
t/f033....ok
t/f034....ok
t/f035....ok
t/f036....ok
t/m001....ok
t/m002....ok
t/m003....ok
t/m004....ok
t/m005....FAILED test 5
Failed 1/30 tests, 96.67% okay
t/m006....ok
t/m007....ok
t/m008....ok
t/m009....ok
t/m010....ok
t/m011....ok
Failed Test Stat Wstat Total Fail Failed
List of Failed
-------------------------------------------------------------------------------
t/m005.t 30 1 3.33% 5
Failed 1/48 test scripts, 97.92% okay. 1/2716
subtests failed, 99.96% okay.
make: *** [test_dynamic] エラー
29
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't
install without force
cpan>