安装zabbix遇到的问题

编译

./configure --prefix=/usr/local/zabbix --sysconfdir=/etc/zabbix --enable-server --enable-agent --enable-proxy --with-mysql --enable-net-snmp --with-libcurl

出现错误

如出现configure: error: MySQL library not found错误

解决办法

yum install mariadb-devel

安装的时候出现:

[root@node1 zabbix]# make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /opt/02-component/zabbix/missing aclocal-1.16 -I m4
/opt/02-component/zabbix/missing:▒▒81: aclocal-1.16: δ▒ҵ▒▒▒▒▒
WARNING: 'aclocal-1.16' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <https://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <https://www.gnu.org/software/autoconf>
         <https://www.gnu.org/software/m4/>
         <https://www.perl.org/>
make: *** [aclocal.m4] ▒▒▒▒ 127

解决办法:

wget https://ftp.gnu.org/gnu/automake/automake-1.16.tar.gz
tar -zxvf automake-1.16.tar.gz
cd automake-1.16
 ./configure  --prefix=安装目录
make

安装automake-1.16出现问题:

checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for perl... /usr/bin/perl
checking for tex... no
checking for yacc... yacc
checking for lex... lex
checking whether autoconf is installed... no
configure: error: Autoconf 2.65 or better is required.
    Please make sure it is installed and in your PATH.

解决办法

wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar zxvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr/
make && make install

Delta RPMs disabled because /usr/bin/applydeltarpm not installed

解决办法

yum provides '*/applydeltarpm'  
yum install deltarpm -y

安装 php服务器

yum install php 

 

在启动php服务器的时候, 去访问web界面出现的问题

Check of pre-requisites

  • Minimum required size of PHP post is 16M (configuration option "post_max_size").
  • Minimum required limit on execution time of PHP scripts is 300 (configuration option "max_execution_time").
  • Minimum required limit on input parse time for PHP scripts is 300 (configuration option "max_input_time").
  • Time zone for PHP is not set (configuration parameter "date.timezone").

At least one of MySQL, PostgreSQL, Oracle or IBM DB2 should be supported.

 

PHP中date.timezone的设置

date.timezone = Asia/Shanghai

启动zabbix 报错

 34525:20191015:221811.571 Zabbix agent item "system.cpu.util[,user]" on host "Zabbix server" failed: first network error, wait for 15 seconds
 34531:20191015:221826.584 Zabbix agent item "system.cpu.util[,system]" on host "Zabbix server" failed: another network error, wait for 15 seconds
 34531:20191015:221841.594 Zabbix agent item "system.uptime" on host "Zabbix server" failed: another network error, wait for 15 seconds
 34509:20191015:221842.580 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
 34515:20191015:221843.581 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.
 34511:20191015:221848.589 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.
 34511:20191015:221848.590 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.
 34511:20191015:221848.599 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.
 34511:20191015:221855.629 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.
 34531:20191015:221856.606 temporarily disabling Zabbix agent checks on host "Zabbix server": host unavailable

解决办法:

#/etc/hosts文件添加
127.0.0.1 zabbix.server

 

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值