一 简介

Big Sister是一款比较优秀的linux平台的免费的主机和网络监控软件,基于c/s架构,web界面,在linux和windows(客户端)都可以运行,界面友好,性能可靠。



Big Sister网络监测器是一款SNMP监测程序,拥有一个Web服务器前端加客户机-服务器的架构。这款应用可提供的功能有:对网络系统的分布式监测;实时的状态监测;关键事件通报;状态更改的历史视图和系统性能数据的显示。


二 安装与配置



1 准备工作
安装服务器端操作系统,我用的是RedHat Linux AS4 update2 ;
安装Apache2压缩包或者rpm包;
下载软件:
到网站http://prdownloads.sourceforge.net/bigsister下载或者直接使用
wget http://superb.dl.sourceforge.net/sourceforge/bigsister/bigsister-1.02-4.noarch.rpm下载到当前目录下也可以。共需要3个文件:

bigsister-0.99c3-4.noarch.rpm
 bigsister-agent-0.99c3-4.noarch.rpm
 bigsister-server-0.99c3-4.noarch.rpm


如果可能,还可以安装rrdtool包,但考虑到那东西安装比较复杂,涉及很多数据包, 所以我就偷懒没有安装,事实上也一样可以使用,如果哪位有兴趣,请尝试一下,然后让大家分享你的经验.
2 安装软件
服务器端直接rpm -ivh bigsister* 即可
系统自动添加用户,有报警也不用理他,只要最后提示安装成功就可以了。
客户端不需要安装bigsister-server-0.99c3-4.noarch.rpm
3 配置系统文件

# vi /etc/bigsister/uxmon-net


修改ineted 为xinted 这个进程是较早的linux系统所使用的,较新的版本都是xinted 如果需要监控其他的进程,按照这一行前面的格式添加
即可。其他需要修改的地方可以在这个配置文件中看到;

# Agent Configuration File
 # The Big Sister Server expects communication
 # every 10 minutes or server is considered down
 #-----------------------------------------------------
 # Set the default SNMP community to "public", the
 #
 # Set default frequency to 5 minutes for "ALL" checks
 # KEYWORD Default settings Apply To TEST
 #------------- --------------------------- -----------------
 DEFAULT community=public frequency=5 perf=5 ALL
 DEFAULT version=1 proto=udp rpc
 DEFAULT proto=udp ping

 # Information about defined systems to monitor using DESCR command.
 #
 # KEYWORD SYSTEM FEATURES Apply To HOST
 #--------- -------------------------- ------------
 DESCR features=unix,linux localhost
 # DESCR features=unix,sysv,solaris someotherhost

 # Run the following tests.
 # Note: host1(host2) is reported under host2
 # Note: host can be an IP address
 # Report Host Health Test List
 #------------ -----------------------------------
 localhost load memory network cpuload
 localhost disk
 localhost syslog
 localhost proc=xinetd procs proc=sshd procs proc=snmpd procs proc=syslogd procs proc=httpd procs
 #上面这一行是我修改后的东西,需要监控 xinted sshd snmpd syslogd httpd进程,可以根据自己的需要添加和修改
 localhost users
 # EDIT THIS, replace localhost by the name or IP address of your Big Sister server
 #
 # BigSis Server bsdisplay /options
 #------------ -----------------------------------
 localhost bsdisplay 
 #如果在客户机上,这一行改为服务器端的ip地址 如改为 192.168.10.100 bsdisplay 就是说要把信息传递到地址为 192.168.10.100 的服务器端上,在服务器端的,这个就不用改动了 
 # include file for specific hosts, do not name it uxmon-net.* as a new
 # process is started for every file matching that pattern
 include include_checks.$HOST


4 运行
已经完成安装过程,并注意打开iptables防火墙相应的端口
服 务器端,由于这个软件是基于snmpd的,所以必须先运行snmpd, service snmpd start即可,然后运行 service bigsister start 运行,这时apache必须已经正常,在本机上应该可以看到127.0.0.1的页面,在浏览器中键入http://你的 ip 地址/bigsis/即可以看到监控主机的页面.如果你看到一串绿灯,恭喜你:)



到此为止,我们的工作已经做完。不过以上是以RPM包进行安装的,如果是源码又该如何安装呢?请继续看下面:


1.安装前的准备

net-snmp-utils-5.1.2-11
     net-snmp-devel-5.1.2-11
     net-snmp-libs-5.1.2-11
     net-smp-5.1.2-11
     net-snmp-perl-5.1.2-11
                 
     perl-rrdtool-1.0.50-3.el4.rf.i386.rpm
     rrdtool-1.0.50-3.el4.rf.i386.rpm

          
2.安装辅助软件snmp和rrdtool
 

yum install net-snmp-*
     rpm -ivh rrdtool-1.0.50-3.el4.rf.i386.rpm
     rpm -ivh perl-rrdtool-1.0.50-3.el4.rf.i386.rpm


注:rrdtool软件下载地址:


http://dag.wieers.com/rpm/packages/rrdtool/                       
3.安装big-sister        

tar –zxvf big-sister-1.02.tar.gz
     cd big-sister-1.02.tar.gz
     ./configure --prefix=/usr/local/bs --with-user=root --with-cgi=/usr/local/bs/cgi --with-url=/bigsis
     make install
     make install-agent
     make install-modules
     make install-server
     make install-modules


    安装bigsister需要注意的是,有的人喜欢为bigsister建个用户,但是这样在检测disk, msgs的时候会出现一些权限问题,如Cannot open the log: /var/log/messages: Permission denied,所以我在安装的时候用的是root用户       
4.配置bigsister
    配置/usr/local/bs/adm/uxmon-net, 用vi命令打开bigsister,


默认5分钟check一次,根据自己的需求修改frequency=5 perf=5          
    添加http

localhost    http  不写端口默认为80端口   
       localhost    url=http://host:port或 localhost http://host:port


    添加tcp,例如:localhost   service=ssh tcp
      其他常用服务都可这样写(如ftp,smtp pop3, nntp, ica等)
    添加监测端口,如监测tomcat端口8080
      localhost   port=8080   tcp
    注意:localhost可以改为本机的计算机名字或ip地址,如监测多台服务器,再添加服务器的时候,把localhost改为要添加服务器的名字或IP地址,这样就可以监测多台服务器。
     更多详细的配置请参阅doc/CONFIG文档。
5.启动bigsister服务

service snmpd start
      /usr/local/bs/bin/bb_start start     启动服务
      /usr/local/bs/bin/bb_start stop     关闭服务


6. 安装apache
    简单配置apache

vi /usr/local/apache/conf/http.conf

    修改DocumentRoot 为DocumentRoot "/usr/local/bs/www"
    添加include /usr/local/bs/adm/httpd.conf   如果不添加这行,网页alarms,admin,help打不开
    启动apache服务  
7.打开网页http://ip/bigsis   查看监测页面,这里有更多的帮助 
8.客户配置

220.194.59.208   bsdisplay #big-sister  220.194.59.208改为big-sister服务器的IP地址即可。



本文转自 tiger506 51CTO博客,原文链接:http://blog.51cto.com/tiger506/402050,如需转载请自行联系原作者