Alexei Vladishev创建了Zabbix项目,当前处于活跃开发状态,Zabbix SIA提供支持.
Zabbix是一个企业级的、开源的、分布式的监控套件
Zabbix可以监控网络和服务的监控状况. Zabbix利用灵活的告警机制,允许用户对事件发送基于Email的告警. 这样可以保证快速的对问题作出相应. Zabbix可以利用存储数据提供杰出的报告及图形化方式. 这一特性将帮助用户完成容量规划.
Zabbix支持polling和trapping两种方式. 所有的Zabbix报告都可以通过配置参数在WEB前端进行访问. Web前端将帮助你在任何区域都能够迅速获得你的网络及服务状况. Zabbix可以通过尽可能的配置来扮演监控你的IT基础框架的角色,而不管你是来自于小型组织还是大规模的公司.
Zabbix是零成本的. 因为Zabbix编写和发布基于GPL V2协议. 意味着源代码是免费发布的.
Zabbix公司也提供商业化的技术支持.
如果想了解更多,请访问 Zabbix特性 章节.
参考
Zabbix安装方式:
源码编译安装
rpm包安装
yum list all |grep zabbix #我用的阿里云的epel源,这可以看到3个版本的zabbixyum install zabbix20*
创建zabbix数据库定导入
[root@e3 ~]# rpm -ql zabbix20-server-mysql/usr/sbin/zabbix_server_mysql/usr/share/zabbix-mysql/usr/share/zabbix-mysql/data.sql/usr/share/zabbix-mysql/images.sql/usr/share/zabbix-mysql/schema.sql/usr/share/zabbix-mysql/upgrades/usr/share/zabbix-mysql/upgrades/1.6/usr/share/zabbix-mysql/upgrades/1.6/patch.sql/usr/share/zabbix-mysql/upgrades/1.8/usr/share/zabbix-mysql/upgrades/1.8/patch.sql/usr/share/zabbix-mysql/upgrades/1.8/upgrade/usr/share/zabbix-mysql/upgrades/2.0/usr/share/zabbix-mysql/upgrades/2.0/patch.sql/usr/share/zabbix-mysql/upgrades/2.0/rc4_rc5.sql/usr/share/zabbix-mysql/upgrades/2.0/upgrade
连接数据库创建zabbix并导入zabbix数据
[root@e3 ~]# mysql -uroot -p -h127.0.0.1 -P3306Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 49Server version: 10.0.15-MariaDB Source distributionCopyright (c) 2000, 2014, Oracle, SkySQL Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> create database zabbix;Query OK, 1 row affected (0.01 sec)MariaDB [(none)]> use zabbix;MariaDB [(none)]> source /usr/share/zabbix-mysql/schema.sql #必须安顺序导入MariaDB [(none)]> source /usr/share/zabbix-mysql/images.sqlMariaDB [(none)]> source /usr/share/zabbix-mysql/data.sqlMariaDB [zabbix]> grant all on zabbix.* to 'zabbix'@'%' identified by 'zabbix'; #授权zabbix用户帐号和密码Query OK, 0 rows affected (0.00 sec)MariaDB [zabbix]> flush privileges; Query OK, 0 rows affected (0.00 sec)#或者mysql -uroot -ppasswd -h127.0.0.1 -P3306 zabbix < /usr/share/zabbix-mysql/schema.sql#或者mysql -uroot -ppasswd -h127.0.0.1 -P3306 zabbix < /usr/share/zabbix-mysql/images.sql#或者mysql -uroot -ppasswd -h127.0.0.1 -P3306 zabbix < /usr/share/zabbix-mysql/data.sql
修改主配置文件并启动
[root@e3 ~]# grep -v ^# /etc/zabbix_server.conf |grep -v ^$LogFile=/var/log/zabbixsrv/zabbix_server.logLogFileSize=0PidFile=/var/run/zabbixsrv/zabbix_server.pidDBHost=127.0.0.1DBName=zabbixDBUser=zabbixDBPassword=zabbixDBSocket=/var/lib/mysql/mysql.sockDBPort=3306AlertScriptsPath=/var/lib/zabbixsrv/alertscriptsExternalScripts=/var/lib/zabbixsrv/externalscriptsTmpDir=/var/lib/zabbixsrv/tmp
[root@e3 zabbix]# /etc/init.d/zabbix-server start #启动zabbixStarting Zabbix server: [确定][root@e3 ~]# netstat -antlp |grep zabbix*tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 13866/zabbix_server tcp 0 0 127.0.0.1:54146 127.0.0.1:3306 ESTABLISHED 13877/zabbix_server tcp 0 0 127.0.0.1:54142 127.0.0.1:3306 ESTABLISHED 13878/zabbix_server tcp 0 0 127.0.0.1:54129 127.0.0.1:3306 ESTABLISHED 13890/zabbix_server tcp 0 0 127.0.0.1:54126 127.0.0.1:3306 ESTABLISHED 13882/zabbix_server tcp 0 0 127.0.0.1:54133 127.0.0.1:3306 ESTABLISHED 13899/zabbix_server tcp 0 0 127.0.0.1:54145 127.0.0.1:3306 ESTABLISHED 13875/zabbix_server tcp 0 0 127.0.0.1:54140 127.0.0.1:3306 ESTABLISHED 13876/zabbix_server tcp 0 0 127.0.0.1:54137 127.0.0.1:3306 ESTABLISHED 13906/zabbix_server tcp 0 0 127.0.0.1:54144 127.0.0.1:3306 ESTABLISHED 13874/zabbix_server tcp 0 0 127.0.0.1:54128 127.0.0.1:3306 ESTABLISHED 13886/zabbix_server tcp 0 0 127.0.0.1:54127 127.0.0.1:3306 ESTABLISHED 13884/zabbix_server tcp 0 0 127.0.0.1:54124 127.0.0.1:3306 ESTABLISHED 13879/zabbix_server tcp 0 0 127.0.0.1:54138 127.0.0.1:3306 ESTABLISHED 13908/zabbix_server tcp 0 0 127.0.0.1:54134 127.0.0.1:3306 ESTABLISHED 13900/zabbix_server tcp 0 0 127.0.0.1:54139 127.0.0.1:3306 ESTABLISHED 13897/zabbix_server tcp 0 0 127.0.0.1:54131 127.0.0.1:3306 ESTABLISHED 13893/zabbix_server tcp 0 0 127.0.0.1:54143 127.0.0.1:3306 ESTABLISHED 13872/zabbix_server tcp 0 0 127.0.0.1:54135 127.0.0.1:3306 ESTABLISHED 13902/zabbix_server tcp 0 0 127.0.0.1:54125 127.0.0.1:3306 ESTABLISHED 13880/zabbix_server tcp 0 0 127.0.0.1:54136 127.0.0.1:3306 ESTABLISHED 13904/zabbix_server tcp 0 0 127.0.0.1:54132 127.0.0.1:3306 ESTABLISHED 13895/zabbix_server tcp 0 0 :::10051 :::* LISTEN 13866/zabbix_server #侦听端口10051
访问zabbix主页
[root@e3 conf.d]# /etc/init.d/httpd start正在启动 httpd: [确定][root@e3 conf.d]# rpm -ql zabbix-web[root@e3 conf.d]#
打开浏览器输入你的ip后面跟zabbix即可
如http://192.168.0.1/zabbix
可能出现php某些参数没达到要求对应的在/etc/php.ini里修改即可 然后重启httpd
根据提示完成
登录明默认是admin 密码zabbix
可以设置中文界面
zabbix客户端需要安装 zabbix 和zabbix-agent