Visitorsのインストール
Visitorsのインストール
0.改訂履歴
1.はじめに
このドキュメントでは,Webサーバのログ解析ツールvisitorのインストールと利用手順を説明する.
なお,使用しているOSは,RedHat Linux ES3.0上で稼働している.
2.導入手順
[root@jupiter visitors]# wget http://www.hping.org/visitors/visitors-0.5.tar.gz
--21:22:49-- http://www.hping.org/visitors/visitors-0.5.tar.gz
=> `visitors-0.5.tar.gz'
Resolving www.hping.org... 192.70.106.166
Connecting to www.hping.org[192.70.106.166]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 70,224 [application/x-tar]
100%[=================================================>] 70,224 17.38K/s ETA 00:00
21:22:54 (17.35 KB/s) - `visitors-0.5.tar.gz' saved [70,224/70,224]
[root@jupiter visitors]#
|
[root@jupiter visitors]# ls -la
total 84
drwxr-xr-x 2 root root 4096 Sep 6 21:22 .
drwxr-xr-x 6 root root 4096 Sep 6 21:22 ..
-rw-r--r-- 1 root root 70224 Apr 30 01:22 visitors-0.5.tar.gz
[root@jupiter visitors]#
|
[root@jupiter visitors]# tar xfz visitors-0.5.tar.gz
[root@jupiter visitors]#
|
[root@jupiter visitors]# cd visitors_0.5/
[root@jupiter visitors_0.5]# ls -la
total 252
drwxr-xr-x 2 1000 1000 4096 Apr 30 01:21 .
drwxr-xr-x 3 root root 4096 Sep 6 21:23 ..
-rw-r--r-- 1 1000 1000 254 Apr 30 01:21 AUTHORS
-rw-r--r-- 1 1000 1000 18381 Apr 30 01:21 COPYING
-rw-r--r-- 1 1000 1000 5870 Apr 30 01:21 Changelog
-rw-r--r-- 1 1000 1000 421 Apr 30 01:21 Makefile
-rw-r--r-- 1 1000 1000 337 Apr 30 01:21 NOTIFY
-rw-r--r-- 1 1000 1000 1334 Apr 30 01:21 README
-rw-r--r-- 1 1000 1000 733 Apr 30 01:21 SECURITY
-rw-r--r-- 1 1000 1000 2231 Apr 30 01:21 TODO
-rw-r--r-- 1 1000 1000 19271 Apr 30 01:21 aht.c
-rw-r--r-- 1 1000 1000 3419 Apr 30 01:21 aht.h
-rw-r--r-- 1 1000 1000 6880 Apr 30 01:21 antigetopt.c
-rw-r--r-- 1 1000 1000 1022 Apr 30 01:21 antigetopt.h
-rwxr-xr-x 1 1000 1000 248 Apr 30 01:21 build-tar-gz.sh
-rw-r--r-- 1 1000 1000 19396 Apr 30 01:21 doc.html
-rwxr-xr-x 1 1000 1000 3313 Apr 30 01:21 iis2apache.pl
-rw-r--r-- 1 1000 1000 5590 Apr 30 01:21 powered-by-visitors.png
-rw-r--r-- 1 1000 1000 259 Apr 30 01:21 sleep.h
-rw-r--r-- 1 1000 1000 2047 Apr 30 01:21 tail.c
-rw-r--r-- 1 1000 1000 5253 Apr 30 01:21 visitors.1.gz
-rw-r--r-- 1 1000 1000 87143 Apr 30 01:21 visitors.c
-rw-r--r-- 1 1000 1000 650 Apr 30 01:21 visitors.css
-rw-r--r-- 1 1000 1000 5896 Apr 30 01:21 visitors.png
[root@jupiter visitors_0.5]#
|
[root@jupiter visitors_0.5]# make -f Makefile
cc -c -O2 -Wall -W -g visitors.c
cc -c -O2 -Wall -W -g aht.c
cc -c -O2 -Wall -W -g antigetopt.c
cc -c -O2 -Wall -W -g tail.c
cc -o visitors -O2 -Wall -W -g visitors.o aht.o antigetopt.o tail.o
[root@jupiter visitors_0.5]#
|
[root@jupiter visitors_0.5]# ls -lat
total 492
drwxr-xr-x 2 1000 1000 4096 Sep 6 21:26 .
-rw-r--r-- 1 root root 5892 Sep 6 21:26 tail.o
-rwxr-xr-x 1 root root 98529 Sep 6 21:26 visitors
-rw-r--r-- 1 root root 14584 Sep 6 21:26 aht.o
-rw-r--r-- 1 root root 8872 Sep 6 21:26 antigetopt.o
-rw-r--r-- 1 root root 96180 Sep 6 21:26 visitors.o
drwxr-xr-x 3 root root 4096 Sep 6 21:23 ..
-rw-r--r-- 1 1000 1000 254 Apr 30 01:21 AUTHORS
-rw-r--r-- 1 1000 1000 18381 Apr 30 01:21 COPYING
-rw-r--r-- 1 1000 1000 5870 Apr 30 01:21 Changelog
-rw-r--r-- 1 1000 1000 421 Apr 30 01:21 Makefile
-rw-r--r-- 1 1000 1000 337 Apr 30 01:21 NOTIFY
-rw-r--r-- 1 1000 1000 1334 Apr 30 01:21 README
-rw-r--r-- 1 1000 1000 733 Apr 30 01:21 SECURITY
-rw-r--r-- 1 1000 1000 2231 Apr 30 01:21 TODO
-rw-r--r-- 1 1000 1000 19271 Apr 30 01:21 aht.c
-rw-r--r-- 1 1000 1000 3419 Apr 30 01:21 aht.h
-rw-r--r-- 1 1000 1000 6880 Apr 30 01:21 antigetopt.c
-rw-r--r-- 1 1000 1000 1022 Apr 30 01:21 antigetopt.h
-rwxr-xr-x 1 1000 1000 248 Apr 30 01:21 build-tar-gz.sh
-rw-r--r-- 1 1000 1000 19396 Apr 30 01:21 doc.html
-rwxr-xr-x 1 1000 1000 3313 Apr 30 01:21 iis2apache.pl
-rw-r--r-- 1 1000 1000 5590 Apr 30 01:21 powered-by-visitors.png
-rw-r--r-- 1 1000 1000 259 Apr 30 01:21 sleep.h
-rw-r--r-- 1 1000 1000 2047 Apr 30 01:21 tail.c
-rw-r--r-- 1 1000 1000 5253 Apr 30 01:21 visitors.1.gz
-rw-r--r-- 1 1000 1000 87143 Apr 30 01:21 visitors.c
-rw-r--r-- 1 1000 1000 650 Apr 30 01:21 visitors.css
-rw-r--r-- 1 1000 1000 5896 Apr 30 01:21 visitors.png
[root@jupiter visitors_0.5]#
|
[root@jupiter visitors_0.5]# ./visitors -A -m 30 /home/shinnai/webblog/access.log-20050906.log -o html >/usr/share/nagios/report.html
--
226062 lines processed in 5 seconds
0 invalid lines
[root@jupiter visitors_0.5]#
|