xymon监控搭建

目录:

  1. xymon server端搭建步骤
  2. xymon 添加client

xymon server端搭建步骤

# 添加xymon用户
groupadd xymon
useradd -g xymon -m xymon

# 安装编译工具
yum install gcc make -y

# 安装fping
wget http://fping.org/dist/fping-3.2.tar.gz
tar zxf fping-3.2.tar.gz
cd fping-3.2
./configure
make && make install
cd ..

# 安装xymon
yum install pcre-devel openssl-devel openldap-devel rrdtool-devel libtirpc-devel -y
wget http://sourceforge.net/projects/xymon/files/Xymon/4.3.30/xymon-4.3.30.tar.gz
tar -zxvf xymon-4.3.30.tar.gz
cd xymon-4.3.30
./configure --server
make && make install
# 安装httpd
yum install httpd
systemctl enable httpd.service  # 开机启动
systemctl status httpd.service
cat /home/xymon/server/etc/xymon-apache.conf >> /etc/httpd/conf/httpd.conf

# 赋权、切换到xymon用户启动服务
chmod 755 /home/xymon
su xymon
cd server
[xymon@localhost server]$ ./xymon.sh start
Xymon started

# xymon编辑httpd发布目录
vi  /etc/httpd/conf/httpd.conf
365 DocumentRoot /home/xymon/server/www
[root@localhost www]# systemctl restart httpd

server端搭建完成结果

xymon监控搭建_第1张图片

其中监控项表示的意义
  • bbd 表示Xymon网络服务的可用性.
  • bbgen表示bbgen tool的状态, 它是用来更新网页的.
  • bbtest表示bbtest-net 的状态, 它是用来执行Xymon中配置的所有网络测试.
  • conn是对主机的Ping测试.
  • xymond是表示Xymon服务的状态.
  • http是HTTP-Server的运行状态
  • info包含此主机在Xymon中的配置, 例如IP地址等.
  • trends包含此主所有状态的曲线图

因为使用的是vbox虚拟软件,在网络环境发生变化的时候需要指定连接的网卡

xymon监控搭建_第2张图片

回到目录

xymon 添加client

# client端设置
[root@localhost client]# cd /home/xymon/client && ./runclient.sh start
Xymon client for linux started on localhost.localdomain

# server端设置
[root@localhost ~]# cd /home/xymon/server/etc/
[root@localhost etc]# vi hosts.cfg
15 127.0.0.1   localhost.localdomain      # bbd http://localhost.localdomain/
16 192.168.31.102   slave
[root@localhost etc]# vi xymonserver.cfg
8 XYMONSERVERHOSTNAME="master"            # The hostname of your server
9 XYMONSERVERIP="192.168.31.101"                  # The IP-address of your server. Use the real one, not 127.0.0.1 .

xymon监控搭建_第3张图片
指定xymon server

[root@localhost ~]# cd /home/xymon/client/etc
[root@localhost etc]# vi xymonclient.cfg
     3 XYMSRV="192.168.31.101"          # IP address of the Xymon server

结果:
在这里插入图片描述

回到目录

你可能感兴趣的:(监控,xymon,监控)