1、从github上下载长期支持版本zabbix/zabbix at release/4.0 (github.com)
2、将源码包解压缩到Ubuntu系统中找到bootstrap.sh文件。在终端中运行此文件此时会生成configure文件
3、官方给出了编译方法和参数参见3 Installation from sources (zabbix.com)
4、编译server使用mysql数据库方式如下
./configure --enable-server --with-mysql --enable-ipv6 --with-net-snmp
提示如下问题:
提示如下问题:
configure: error: MySQL library not found
解决:
sudo apt-get install libmysqlclient-dev
提示如下问题:
configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
解决:
apt-get install snmp snmpd libsnmp-dev
提示如下问题:
configure: error: Unable to use libevent (libevent check failed)
解决:apt-get -y install libevent-dev
提示如下问题:
configure: error: Unable to use libpcre (libpcre check failed)
解决:apt-get -y install libpcre3-dev成功:
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
编译agent使用如下命令
./configure --enable-agent
zabbix编译常规报错解决方法-月歌54-ChinaUnix博客
Ubuntu操作系统编译安装zabbix报错汇总 - JasonYin2020 - 博客园 (cnblogs.com)
其他源码流程解析:
zabbix:
客户端:
http://xiaorui.cc/archives/666
https://www.zabbix.com/documentation/4.0/zh/manpages/zabbix_agentd
https://blog.csdn.net/u011731378/article/details/80074821
https://www.cnblogs.com/mysql-dba/p/5010902.html
http://www.361way.com/zabbix-agent-key/3390.html
服务端:
https://blog.csdn.net/u011731378/article/details/74549776
https://blog.csdn.net/mcmoo/article/details/103396809
https://blog.51cto.com/u_15094852/4078700
数据库表:
https://www.cnblogs.com/wumingxiaoyao/p/7412312.html
https://www.cnblogs.com/xuefy/p/11422104.html
https://blog.csdn.net/zhangxueleishamo/article/details/94400572/
https://blog.csdn.net/weixin_34238642/article/details/93687290
https://www.xiaomastack.com/2014/07/03/zabbixdbtable/
https://wenku.baidu.com/view/8d56c7b489eb172ded63b7ea.html
https://www.zabbix.com/documentation/4.0/zh/manual/config/notifications/unsupported_item
https://blog.csdn.net/qq_39376481/article/details/90519852