Big Brother监控安装

系统使用CentOS,BigBrother是一套服务器监控程序,免费版本只提供至1.9i。
可设定监控每台服务器的不同服务,可记录服务器的存活历程服务,断线时自动以E-Mail报警,方便快速定位故障。
1.安裝所需套件
yum install gcc-c++
yum install httpd
2.下载bb4软件
mkdir /var/www/html/bb4
cd /var/www/html/bb4
下载bb-1.9i.tar.gz
wget http://bb4.org/dnld/bb-1.9i.tar.gz
3.解压缩bb4
tar -zxvf bb-1.9i.tar.gz
tar -xf BBSVR-bb1.9i-btf.tar
4.设定bb4
adduser bb#建立BB用户,以便使用此用户启动BB服务系统
cd /var/www/html/bb4/bb1.9i-btf/install
./bbconfig linux
Do you agree to the terms of this license (y/n):y
What will be the user ID for BB [bb]:(ENTER)
Use FQDN (y/n): [y]
What host will be the BBDISPLAY [server]: 192.168.6.1(监控主机的IP)
What host will be the BBPAGER [192.168.6.1]:(ENTER)
Is this host a BBDISPLAY host (y/n): [y]
Is this host a BBPAGER host (y/n): [y]
Enter the default e-mail address to send notifications to: [root@server] admin@test.com
Enter the base URL for BB [/bb]:(ENTER)
Enter CGI directory [/home/www/httpd/cgi-bin]: /var/www/cgi-bin
Enter the base URL of the CGI scripts [/cgi-bin]:(ENTER)
*** 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]n
Enter web server user id [nobody]:apache
Enter group name [apache]:(ENTER)
5.安装bb4
chown -R bb /var/www/html/bb4/bbvar  /var/www/html/bb4/bb1.9i-btf
su - bb
cd /var/www/html/bb4/bb1.9i-btf/src
make
make install
(如果make时出現bbd.c:724: error: invalid storage class for function ‘bbd_timeout’错误时
vim /var/www/html/bb4/bb1.9i-btf/src/bbd.c 把722行 "static"字串刪掉)
6.编辑bb4监控目录文件bb-hosts
cd ../etc# local directory [pwd] should now be /var/www/html/bb4/bb1.9i-btf/etc 由于使用系统不同可能会有区别 或/usr/local/bb/bb1.9i-btf/etc ]
cp bb-hosts bb-hosts.bak   # always make a backup of config files, BEFORE editing them
vim /var/www/html/bb4/bb1.9i-btf/etc/bb-hosts
范例:
xxx.xxx.xxx.xxxthis.host.name       # BBDISPLAY BBPAGER BBNET
将this.host.name修改成你监控主机的电脑名称,否则检查时会出错。
group BB Server
192.168.6.1 bb # BBNET BBDISPLAY BBPAGER http://192.168.6.1/bb(必须在最上行)
192.168.6.2 flash.it.net # BBNET ftp http://flash.it.net/
192.168.6.3 goth.it.net # BBNET ftp http://goth.it.net/
In the first line, the server is monitoring itself (BBNET), is displaying the results (BBDISPLAY) and will send out alerts (BBPAGER).This is the usual setting for the top line.
The subsequent lines indicate the folowing hosts are also to be monitored (BBNET), with details of IPs, Services to be monitored and FQDNs.
7. 检查错误项目
./bbchkcfg.sh
- Checks the bbdef*.sh/bbinc*.sh/bbsys.sh source scripts for invalid entries. Follow the screen prompts and fix any errors.
./bbchkhosts.sh
- Checks the bb-hosts file for errors. Follow the screen prompts and fix any errors.
cd /var/www/htmlor   cd /usr/local/bb
chown -R bb bb4#给BB安装目录赋于BB用户权限(其实前面已经给过权限了)
- Change the ownership of all the directories and files in the /bb directory back to the BBUSER
8.目录转向
Big Brother will actually output the information to an .html file in /usr/local/bb/bb1.9i-btf/www/bb.html To make this accessible to network users, create a symlink to a virtual directory in the Apache tree..
ln -s /var/www/html/bb4/bb1.9i-btf/www/ /var/www/html/bb
# 将BB目录转换到APACHE目录以方便访问http://IP/bb
or 
ln -s /usr/local/bb/bb1.9i-btf/www /usr/local/apache/htdocs/bb
9.启动服务
su bb
cd /var/www/html/bb4/bb1.9i-btfor cd /usr/local/bb/bb1.9i-btf
./runbb.sh start
Wait a minute or two for the thing to get started and registering.
Welcome to Big Brother
It takes between 5 and 10 minutes to collect, process,
and to fully render the first status page. When this process
is completed, this screen will be replaced by your Big Brother Display.
Thank you for choosing Quest Software
10.注意事项
缩短检查服务时间:By default, the system checks the target services once every 300 seconds. To increase the update frequency, edit the runbb.sh file and change the BBSLEEP=60(第244行) for 60 seconds, or as required.
To fix any errors or change the servers or services to be checked, edit the main config file as you did above
警告信发送对象:/bb/etc/bbwarnrules.cfg gione;;*;;*;*;test@test.com test2@test.com
hosts;exhosts;services;exservices;day;time;recipients
开机启动服务: If you wish to start BB automatically at startup, we suggest the following command in your startup script:
su bb –c "cd /var/www/html/bb4/bb1.9i-btf ./runbb.sh restart"
or
su -bb –c "cd /var/www/html/bb4/bb1.9i-btf; ./runbb.sh start"
到此安装结束,请访问监控主机IP,看下是否安装成功吧~!
Rain_zheng
2011-10-26

转载于:https://blog.51cto.com/dlnat/698131

Big Brother监控安装相关推荐

  1. You are my brother

    You are my brother 时间限制: 1 Sec 内存限制: 128 MB 题目描述 Little A gets to know a new friend, Little B, recen ...

  2. 怎么监控一个接口的传输数据_监控安装超详细教学教程,学会又多一门技能

    大家好,这里是一涛说电脑,今天给大家讲讲关于监控的一些事.本篇属于长篇技术教学,有精通的朋友请绕路,有不懂或者不精通的朋友请耐心看完或多或少都有些许收获. 交通监控 治安监控 小区监控 说到监控,大家 ...

  3. 浅析Avicii的MV Hey Brother

    date: 2017-04-10 20:30:19 其实这篇随感早应在一个月之前就写完的,但是笔者刚从老家来到北京,需要安顿各种事情,再加上自己比较懒上班比较忙,每天晚上回到家,都是直接趴在床上睡了. ...

  4. HNUSTOJ-1257 You are my brother

    1257: You are my brother 时间限制: 1 Sec  内存限制: 128 MB 提交: 39  解决: 15 [提交][状态][讨论版] 题目描述 Little A gets t ...

  5. mfc cstring 写入文件_兄弟Brother单色激光传真一体机MFC系列不能写入此文件夹提示解决方案...

    受影响机型,所有使用ControlCenter3软件的机型,WIN10系统,基本上都受影响.包括但不限于MFC-230.MFC-7340,MFC-7450等. 错误提示: 不能写入此文件夹 <M ...

  6. 计蒜客 28437.Big brother said the calculation-线段树+二分-当前第k个位置的数 ( ACM训练联盟周赛 M)...

    M. Big brother said the calculation 通过线段树维护. 这个题和杭电的一道题几乎就是一样的题目.HDU5649.DZY Loves Sorting 题意就是一个n的排 ...

  7. dcp9030cdn定影_兄弟Brother DCP-9030CDN打印机驱动(修复DCP-9030CDN打印机连接故障)V1.0 正式版...

    兄弟Brother DCP-9030CDN打印机驱动(修复DCP-9030CDN打印机连接故障)是一款非常优秀好用的针对兄弟Brother DCP-9030CDN打印机推出专业驱动程序.使用小编带来的 ...

  8. UVA11161 Help My Brother (II)【大数+递推】

    A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the firs ...

  9. UVA11760 Brother Arif, Please feed us!【bitset】

    Brother Arif is a great problemsetter. He loves grid. Also, he loves light. That's why the other pro ...

最新文章

  1. iOS - 支持水平 / 垂直显示自动滚动的跑马灯控件 --- SKAutoScrollLabel 的使用和实现
  2. E667:Fsync failed(how to solve)
  3. WP8模拟器启动失败解决方法
  4. linux ubuntu kill指令和killall指令的区别(killall会终止所有与该名字匹配的进程)
  5. multiprocessing python_Python教程:进程和线程amp;多进程
  6. Atitti 大话存储读后感 attilax总结
  7. Scala的抽象语法树打印小工具-小拉达
  8. [Study Notes][001][gstreamer] memory
  9. matlab基本使用指南
  10. 今天开博第一篇,呵呵
  11. 珍藏 | 近200篇机器学习与深度学习经典论文整理
  12. 新浪博客中特殊字符不显示的问题
  13. Genius ACM(倍增+归并排序)
  14. VMWARE:NAT模式连接外网
  15. 做支付行业这些支付方式你需要知道!
  16. 聚合支付、第四方支付有哪些平台?
  17. 浅谈泰勒公式与麦克劳林公式
  18. 计算机网络原理 谢希仁(第8版)第三章习题答案
  19. C语言实现通讯录1.0
  20. Java生成PDF文件保存到本地磁盘

热门文章

  1. Unity_Lua_语法基础
  2. 【Axure交互教程】 锚点滚动效果
  3. Win10 Anaconda3安装
  4. 计算机屏幕的作用是什么,电脑屏幕分辨率是什么?有什么作用
  5. SpringBoot按照restful风格统一异常返回
  6. android mp4硬解码器,android 0.5.1使用硬解码出现ANR
  7. UE4 C++入门——动画蒙太奇 学习笔记
  8. JAVA基础知识-集合
  9. 蓝桥杯六届 八题 移动距离JAVA题解
  10. 常见博客程序的市场有这几个