本篇文章主要介绍了"监控系统之--zabbix",主要涉及到方面的内容,对于软件工程感兴趣的同学可以参考一下:
本操作步骤是在安装Apache和PHP的基础之上的操作,具体如何安装Apache和Php请参考【nagios主机监控系统】安装章节Apache和PHP的安装1、...
本操作步骤是在安装Apache和PHP的基础之上的操作,具体如何安装Apache和Php请参考【nagios主机监控系统】安装章节Apache和PHP的安装
1、下载软件,
[root@node1 ~]# wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.0.6/zabbix-2.0.6.tar.gz/download
2.安装zabbix所需的组件(server,agent)
[root@node1 ~]# yum -y install curl curl-devel net-snmp net-snmp-devel perl-DBI
3.创建用户账号(server,agent)
[root@node1 ~]# groupadd zabbix
[root@node1 ~]# useradd -g zabbix zabbix
[root@node1 ~]# usermod -s /sbin/nologin zabbix
4.创建zabbix数据库并导入zabbix数据库数据(server)
[root@node1 ~]# mysql -u root -p123456
mysql> grant all on zabbix.* to zabbix@localhost identified by '123456';
Query OK, 0 rows affected (2.50 sec)
mysql> create database zabbix;
Query OK, 1 row affected (0.09 sec)
[root@node1 opt]# tar zxvf zabbix-2.0.6.tar.gz
[root@node1 opt]# cd zabbix-2.0.6
[root@node1 zabbix-2.0.6]# mysql -uzabbix -p123456 zabbix < database/mysql/schema.sql
Warning: Using a password on the command line interface can be insecure.
[root@node1 zabbix-2.0.6]# mysql -uzabbix -p123456 zabbix < database/mysql/images.sql
Warning: Using a password on the command line interface can be insecure.
[root@node1 zabbix-2.0.6]# mysql -uzabbix -p123456 zabbix < database/mysql/data.sql
Warning: Using a password on the command line interface can be insecure.
5.编译安装(server,agent)
server: (192.168.7.201)
[root@node1 ~]# ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl
ti/CORE -I. -I/usr/include/net-snmp