常用参数说明
--enable-server #安装zabbix server
--enable-proxy #安装zabbix proxy
--enable-agent #安装zabbix agent(如果不监控本机也可以不装)
--with-mysql #使用mysql做
--with-net-snmp #支持snmp协议
--with-libcurl #支持curl,用于web服务监控
编译报错:
checking whether build environment is sane... configure:error: newly created file is older than distributed files!
Check your system clock
解决:这是由于系统时间不对导致的,设置系统时间即可
[root@monitor zabbix-2.2.1]# date -s "2013-12-1110:24:00"
[root@monitor zabbix-2.2.1]# hwclock #写入硬件时间
3、导入
[root@monitor zabbix-2.2.1]# mysql -u root -p123.com -hlocalhost zabbix < database/mysql/schema.sql [root@monitor zabbix-2.2.1]# mysql -u root -p123.com -hlocalhost zabbix < database/mysql/images.sql [root@monitor zabbix-2.2.1]# mysql -u root -p123.com -hlocalhost zabbix < database/mysql/data.sql
4、定义服务端口
[root@monitor ~]# vi /etc/services zabbix-agent 10050/tcp #zabbixagent zabbix-agent 10050/udp #zabbix agent zabbix-trapper 10051/tcp #zabbix trapper zabbix-trapper 10051/udp #zabbix trapper
5、修改配置文件
[root@monitor zabbix-2.2.1]# cpmisc/init.d/fedora/core/zabbix_server /etc/init.d/ [root@monitor zabbix-2.2.1]# cpmisc/init.d/fedora/core/zabbix_agentd /etc/init.d/ [root@monitor zabbix-2.2.1]# cp -R frontends/php/ /var//html/zabbix #复制网站程序
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-27595-2.html
哈哈你的声音温暖
这谢作诗教授肯定喝醉了