Big Brother管理ユーザーの作成
# adduser bb
Big Brother System and Network Monitor – Downloadからソースをダウンロード
$ cd ~
$ tar xzvf bb-1.9i.tar.gz
$ tar xvf BBSVR-bb1.9i-btf.tar
コンパイル
$ cd bb1.9i-btf/install
$ ./bbconfig freebsd
Do you agree to the terms of this license (y/n): y
Thank you, installation continuing...
---> We'll configure for freebsd...
Big Brother needs it's own user id. If your BB user doesn't exist,
you'll have to create it then re-run bbconfig.
What will be the user ID for BB [bb]: bb
---> BB will only run from user 'bb'
Making sure BBHOME is writable...
---> OK, /usr/home/bb/bb1.9i-btf is fine...
When you set up your machines, you should use Fully Qualified
Domain names, this means you use the whole name, like www.bb4.com,
instead of just 'www'. This is recommended.
Use FQDN (y/n): [y] y
---> Good, we'll use FQDN
Big Brother creates HTML pages with the status of your network.
You'll need a web server to publish this information.
What host will be the BBDISPLAY [tiesto.vm.selfip.com]: tiesto.vm.selfip.com
---> OK... tiesto.vm.selfip.com will be a BBDISPLAY
Big Brother sends important messages to a pager server. This
machine will at a minimum to be able to send mail.
What host will be the BBPAGER [tiesto.vm.selfip.com]:
---> OK... tiesto.vm.selfip.com will be a BBPAGER
Some questions regarding the current host
(tiesto.vm.selfip.com) will be asked.
Is this host a BBDISPLAY host (y/n): [y] y
Is this host a BBPAGER host (y/n): [y] y
Enter the default e-mail address to send notifications to: [root@localhost]
Since Big Brother produces results to be displayed on web
pages, we need to know where to view these results.
Enter the base URL for BB [/bb]:
---> OK... Big Brother will live under http://localhost/bb
Big Brother also uses CGI scripts to create dynamic output.
What directory do these scripts live in?
Enter CGI directory [/home/www/httpd/cgi-bin]: /usr/local/www/apache22/cgi-bin/
---> OK... CGI scripts will live at /usr/local/www/apache22/cgi-bin/
Enter the base URL of the CGI scripts [/cgi-bin]:
---> OK... The base URL location of CGI scripts is in /cgi-bin
--------------------------------------------------------
--> UPDATING runbb.sh
--> UPDATING bbsys.local
--> CHECKING COMMAND PATHNAMES
*** Verifying pathnames to necessary commands...
*** The following changes need to be made...
--> /usr/sbin/nslookup changed to /usr/bin/nslookup
*** Making changes...
*** We've noticed that we've set some of the pathnames wrong
*** by default here. May we mail a summary of the paths we
*** missed back to info@bb4.com so we can update our installs?
[y/n]
y
*** Please enter the OS name and version:
freebsd
*** Mail sent, thanks!
*** Done.
--> UPDATING bbdef.sh
--> UPDATING URL location
--> INSTALLING CGI scripts
BB needs to set the group name of the www/rep directory
to the group name of the web server by using its user name
Enter web server user id [nobody]: www
You may override the group name determined by the previous step.
Enter group name [www]: www
--> SETTING WRITE PERMISSION FOR OWNER AND GROUP FOR www/rep
--> CHANGING THE GROUP ID OF www/rep
--> UPDATING pager scripts
--------------------------------------------------------
--------------------------------------------------------
--> Done. Now do
chown -R bb /usr/home/bb/bbvar /usr/home/bb/bb1.9i-btf
su - bb
to continue installation using that user ID
Now compile Big Brother
cd /usr/home/bb/bb1.9i-btf/src
make
make install
--------------------------------------------------------
インストール
$ su
# chown -R bb /usr/home/bb/bbvar /usr/home/bb/bb1.9i-btf
# cd /home/bb/bb1.9e-btf/src
# make
# make install
ディレクトリの権限変更など
# ln -s /usr/home/bb/bb1.9i-btf/www /usr/local/www/apache22/data/bb
# cd /home/bb/test/bb1.9i-btf/www
# chgrp www rep
監視対象の設定
$ vi /usr/home/bb/bb1.9i-btf/etc/bb-hosts
group-compress <B>INTRA Segment</B>
192.168.15.1 gw.vm.selfip.com
192.168.15.105 tiesto.vm.selfip.com # BBNET BBDISPLAY BBPAGER ftp smtp pop3 telnet ssh http://vm.selfip.com/
192.168.15.115 land.vm.selfip.com http://192.168.15.115/
group-compress <H3><I>Web Servers</I></H3>
206.223.157.122 banana2848.maido3.com http://www.2ch.net/
61.200.161.48 www.kddi.com # noping http://www.kddi.com/
61.206.46.13 www.japan-telecom.co.jp # noping http://www.japan-telecom.co.jp/
61.208.134.143 www.ntt.com # noping http://www.ntt.com/
Big Brotherの起動や確認
# su - bb -c "/usr/home/bb/test/bb1.9i-btf/runbb.sh start"
Starting Big Brother
-> BBOUT.OLD file has over 2000 lines
-> Consider removing it to save space...
Starting Big Brother Daemon (bbd)...
Starting Network tests (bb-network)...
Starting Display process (bb-display)...
Big Brother 1.9i started
# ps ax|grep bb
68764 ?? Is 0:00.00 /usr/home/bb/bb1.9i-btf/bin/bbd
68772 p1 S 0:00.00 /bin/sh /usr/home/bb/bb1.9i-btf/runbb.sh start
68775 p1 S 0:00.00 /bin/sh /usr/home/bb/bb1.9i-btf/runbb.sh start
68778 p1 S+ 0:00.00 grep bb
# su - bb -c "/usr/home/bb/test/bb1.9i-btf/runbb.sh stop"
Stopping Big Brother...
kill: 69451: No such process
kill: 68775: No such process
kill: 69346: No such process
kill: 69403: No such process
kill: 69404: No such process
kill: 69405: No such process
kill: 68775: No such process
kill: 68980: No such process
Posted: 8月 20th, 2006 under Big Brother.
Comments: none