日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

安裝zabbix遇到的問題

作者:魯尼的小寶貝 更新時間: 2022-03-15 編程語言

編譯

./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

?

原文鏈接:https://blog.csdn.net/poem_2010/article/details/102527733

欄目分類
最近更新