zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案,由zabbix server与可选组件zabbix agent两部门组成,可以通过SNMP,zabbix agent,ping,端口监视等方法提供对远程服务器/网络状态的监视。zabbix agent需要安装在被监视的目标服务器上,它主要完成对硬件信息或与操作系统有关的内存,CPU等信息的收集。
zabbix 流程图:
zabbix 逻辑图:
下载地址:
一些Zabbix相关教程集合:
Ubuntu 14.04下Zabbix2.4.5 源码编译安装 .com/Linux/2015-05/117657.htm
CentOS 6.3下Zabbix安装部署
CentOS 6.3下Zabbix监控apache server-status
CentOS 6.3下Zabbix监控MySQL数据库参数
server:
安装:
1
[root@sherry zabbix]# yum localinstall zabbix-2.4.8-1.el6.x86_64.rpm zabbix-get-2.4.8-1.el6.x86_64.rpm zabbix-server-2.4.8-1.el6.x86_64.rpm zabbix-server-mysql-2.4.8-1.el6.x86_64.rpm zabbix-web-2.4.8-1.el6.noarch.rpm zabbix-web-mysql-2.4.8-1.el6.noarch.rpm
MYSQL初始化:
1 2 3 4 5 6 7 8 9 10 11 12 13
mysql> CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL ON zabbix.* TO zabbix@'192.168.%.%' IDENTIFIED BY '222222'; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) [root@sherry zabbix]# mysql -uzabbix -h192.168.1.221 -p222222 zabbix < /usr/share/doc/zabbix-server-mysql-2.4.8/create/schema.sql [root@sherry zabbix]# mysql -uzabbix -h192.168.1.221 -p222222 zabbix < /usr/share/doc/zabbix-server-mysql-2.4.8/create/images.sql [root@sherry zabbix]# mysql -uzabbix -h192.168.1.221 -p222222 zabbix < /usr/share/doc/zabbix-server-mysql-2.4.8/create/data.sql
server配置文件:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[root@sherry zabbix]# cd /etc/zabbix/ [root@sherry zabbix]# vim zabbix_server.conf LogFile=/var/log/zabbix/zabbix_server.log LogFileSize=0 PidFile=/var/run/zabbix/zabbix_server.pid DBHost=192.168.1.221 DBName=zabbix DBUser=zabbix DBPassword=222222 DBSocket=/var/lib/mysql/mysql.sock SNMPTrapperFile=/var/log/snmptt/snmptt.log AlertScriptsPath=/usr/lib/zabbix/alertscripts ExternalScripts=/usr/lib/zabbix/externalscripts
启动:
1 2
[root@sherry zabbix]# /etc/init.d/zabbix-server start Starting Zabbix server: [ OK ]
监听端口:10051
web配置文件:
1 2 3
[root@sherry zabbix]# cd /etc/httpd/conf.d/ [root@sherry conf.d]# ls README php.conf welcome.conf zabbix.conf
web 安装:
agent安装:
1