ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Troubleshooting and Problems > Installing Zabbix 3.2 in Centos 6.8 Clean Install Dependencies Errors

View Full Version : Installing Zabbix 3.2 in Centos 6.8 Clean Install Dependencies Errors


Bumbaa
13-10-2016, 05:38
Hello,I'm new to Zabbix and Centos in general. I am trying to install zabbix 3.2 on a clean install of Centos 6.8. I have installed the repository by doing the command :
yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm

My problem is this:

yum install zabbix-server-mysql zabbix-web-mysql

Output:
https://s22.postimg.org/ic8x7bxtt/wrong.jpg

It seems that I have some dependencies error but I just don't know what to do.....

This is the list of what I have installed:

yum install httpd
yum install gcc
yum install fping
yum install mysqld
yum -y install php php-mbstring php-pear
yum install epel-release
yum install unixODBC-devel unixODBC
yum install OpenIPMI
yum install libssh2
yum installlibcurl
yum install iksemel

I installed a couple more but I can't remember them of the top of my head. I basically installed all the dependencies that was printed out when I did the command:

rpm -qpR zabbix-web-mysql-3.2.1-1.el6.noarch.rpm
rpm -qpR zabbix-server-mysql-3.2.1-1.el6.x86_64.rpm
rpm -qpR zabbix-web-3.2.1-1.el6.noarch.rpm

I can install the zabbix-server-mysql-3.2.1-1.el6.x86_64.rpm package manually by grabbing the file with wget and then using rpm -Uvh zabbix-server-mysql-3.2.1-1.el6.x86_64.rpm

It will install the package, but if I try to do it for zabbix-web-3.2.1-1.el6.noarch.rpm it says that It requires zabbix-web-database ( I assume it is: zabbix-web-mysql-3.2.1-1.el6.noarch.rpm ) and when I try to install zabbix-web-mysql-3.2.1-1.el6.noarch.rpm it says that it requires zabbix-web as dependencies (I assume this is web-3.2.1-1.el6.noarch.rpm).

I just wish to be able to type # yum install zabbix-server-mysql zabbix-web-mysql and have no problems.

Sorry if this thread double posted,I meant to click preview but I clicked Submit new thread.

Thank you for your time,
Bumbaa


batchenr
13-10-2016, 11:11
it seems like it want you to install zabbix first
and your installing zabbix-server-mysql zabbix-web-mysql

Atsushi
13-10-2016, 12:00
After installing the Zabbix repository of packages, did you clear the cache of yum?

ex.
# yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
# yum clean all
# yum install zabbix-server-mysql zabbix-web-mysql

And, Zabbix 3.2 requires PHP 5.4 or later.
Since the dependency by PHP to be used is different, it is not set dependencies zabbix-web package.
Please install the necessary extension module for PHP.
(bcmath, gd, ldap, mbstring, xml, mysql, etc.)


guzzijason
13-10-2016, 23:35
I just wanted to point out that the zabbix-server-* and zabbix-web-* packages aren't in the repo that you installed, as they are considered "deprecated" in CentOS 6. If you look carefully at the output you provided, you can see that it's actually trying to install the 1.8.22-1.el6 version, which is most likely coming from the EPEL repo, not the zabbix repo.

__Jason


Bumbaa
14-10-2016, 03:17
After installing the Zabbix repository of packages, did you clear the cache of yum?

ex.
# yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
# yum clean all
# yum install zabbix-server-mysql zabbix-web-mysql

And, Zabbix 3.2 requires PHP 5.4 or later.
Since the dependency by PHP to be used is different, it is not set dependencies zabbix-web package.
Please install the necessary extension module for PHP.
(bcmath, gd, ldap, mbstring, xml, mysql, etc.)

It seems that Centos 6.8 comes with PHP5.3.3 Default, I updated it too PHP 5.4 and installed all the required dependencies and I was still getting that error. I saw that it was trying to download zabbix from the epel repository so I went to check the /etc/yum.repos.d/zabbix.repo and it turns out it wasn't enabled. I enabled it and it successfully downloaded everything.

Now when I do service zabbix-server start it will turn on for a fraction of a second and then turn back off. I check the zabbix-server log and it says Error 13 do not have permission to set parameters. I don't have the exact error log because it is at my work and I haven't written down exactly what it said. From what I gathered,I think it is a permission error.

I just wanted to point out that the zabbix-server-* and zabbix-web-* packages aren't in the repo that you installed, as they are considered "deprecated" in CentOS 6. If you look carefully at the output you provided, you can see that it's actually trying to install the 1.8.22-1.el6 version, which is most likely coming from the EPEL repo, not the zabbix repo.

__Jason

But if I follow the instruction given at this page:
https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql

It seems that I have the command correct. I am a bit confused by the meaning of deprecated, does it mean that it isn't able to install on Centos 6.8, that it is unsafe to install, unsupported?

I can't install zabbix 3.2 on centos 6.8?

Thanks.


Atsushi
14-10-2016, 11:33
Now when I do service zabbix-server start it will turn on for a fraction of a second and then turn back off. I check the zabbix-server log and it says Error 13 do not have permission to set parameters. I don't have the exact error log because it is at my work and I haven't written down exactly what it said. From what I gathered,I think it is a permission error.

If you have enabled SELinux, you need to change the setting.

Do not output a log, such as the following?

25766:20160404:163515.911 cannot set resource limit: [13] Permission denied

Based on the output log in /var/log/audit/audit.log, please set the SELinux policy.

In the other, you also need the following settings.

# setsebool -P httpd_can_network_connect on
# setsebool -P zabbix_can_network on

I think that it is possible to install the Zabbix 3.2.1 in CentOS 6.
But, it is not recommended.
ex. It will not be able to use the SMTP authentication.


Atsushi
14-10-2016, 14:12
Procedure sample at the time of a clean installation:

# yum install centos-release-scl
# yum install rh-php56-php rh-php56-php-bcmath rh-php56-php-gd rh-php56-php-ldap rh-php56-php-mbstring rh-php56-php-xml rh-php56-php-mysqlnd
# yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
# yum install zabbix-agent
# yum --enablerepo=zabbix-deprecated install zabbix-server-mysql
# yum --enablerepo=zabbix-deprecated install zabbix-web-mysql
# yum install mysql-server
# vi /etc/my.cnf
# service mysqld start
# chkconfig mysqld on
# mysql -uroot
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password' ;
mysql> exit
# zcat /usr/share/doc/zabbix-server-mysql-3.2.1/create.sql.gz | mysql -uroot zabbix
# vi /etc/zabbix/zabbix_server.conf
# cp /usr/share/doc/zabbix-web-3.2.1/httpd24-example.conf /opt/rh/httpd24/root/etc/httpd/conf.d/zabbix.conf
# vi /opt/rh/httpd24/root/etc/httpd/conf.d/zabbix.conf
# setsebool -P httpd_can_network_connect on
# setsebool -P zabbix_can_network on
# service httpd24-httpd start
# service zabbix-agent start
# service zabbix-server start
# yum install policycoreutils-python
# grep zabbix_server /var/log/audit/audit.log | audit2allow -M zabbix-limit
# semodule -i zabbix-limit.pp
# service zabbix-server start


guzzijason
14-10-2016, 17:07
But if I follow the instruction given at this page:
https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql

It seems that I have the command correct. I am a bit confused by the meaning of deprecated, does it mean that it isn't able to install on Centos 6.8, that it is unsafe to install, unsupported?

I can't install zabbix 3.2 on centos 6.8?

Atushi answered that question in the post above. You need to enable the deprecated repo:

# yum --enablerepo=zabbix-deprecated install zabbix-server-mysql
# yum --enablerepo=zabbix-deprecated install zabbix-web-mysql

Presumably, zabbix on CentOS 6 is deprecated because CentOS 6's days are numbered, and they would rather focus their attention on supporting zabbix for CentOS 7. I don't particularly agree with this, however, given that CentOS 6 OS is going to be receiving maintenance updates until November 2020, which means there will probably still be many organizations running 6 for the foreseeable future.

__Jason


Bumbaa
17-10-2016, 23:25
Atushi answered that question in the post above. You need to enable the deprecated repo:

Presumably, zabbix on CentOS 6 is deprecated because CentOS 6's days are numbered, and they would rather focus their attention on supporting zabbix for CentOS 7. I don't particularly agree with this, however, given that CentOS 6 OS is going to be receiving maintenance updates until November 2020, which means there will probably still be many organizations running 6 for the foreseeable future.

__Jason

Procedure sample at the time of a clean installation:

# yum install centos-release-scl
# yum install rh-php56-php rh-php56-php-bcmath rh-php56-php-gd rh-php56-php-ldap rh-php56-php-mbstring rh-php56-php-xml rh-php56-php-mysqlnd
# yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
# yum install zabbix-agent
# yum --enablerepo=zabbix-deprecated install zabbix-server-mysql
# yum --enablerepo=zabbix-deprecated install zabbix-web-mysql
# yum install mysql-server
# vi /etc/my.cnf
# service mysqld start
# chkconfig mysqld on
# mysql -uroot
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password' ;
mysql> exit
# zcat /usr/share/doc/zabbix-server-mysql-3.2.1/create.sql.gz | mysql -uroot zabbix
# vi /etc/zabbix/zabbix_server.conf
# cp /usr/share/doc/zabbix-web-3.2.1/httpd24-example.conf /opt/rh/httpd24/root/etc/httpd/conf.d/zabbix.conf
# vi /opt/rh/httpd24/root/etc/httpd/conf.d/zabbix.conf
# setsebool -P httpd_can_network_connect on
# setsebool -P zabbix_can_network on
# service httpd24-httpd start
# service zabbix-agent start
# service zabbix-server start
# yum install policycoreutils-python
# grep zabbix_server /var/log/audit/audit.log | audit2allow -M zabbix-limit
# semodule -i zabbix-limit.pp
# service zabbix-server start

I want to thank you both for expanding my knowledge on what deprecated means and how to install Zabbix 3.2 on Centos 6.8.I managed to get the server running, but some reason I was not able to connect to it. Something was blocking my connection to the server, I just said "screw it" and went with Centos 7 and the installation was very easy.

But now I have a different problems and it is related to the emailing alert service, I followed a guide on how to create a smtp server for centos 7 and I am using dovecot for authentification but I still get this error message when zabbix tries to send an email:

NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <bob@random.ca>: Relay access denied; from=<localhost@test.com> to=<bob@random> proto=SMTP helo=<localhost>

This is the output of #postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
local_recipient_maps =
mail_owner = postfix
mailbox_size_limit = 1073741824
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = zabbix.server
myhostname = localhost
mynetworks = 0.0.0.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relay_domains = $mydomain, $myhostname, localhost, localhost.localdomain $mydesination, $inet_interfaces, $proxy_interfaces, $virtual_alias_domains, $virtual_mailbox_domains
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP
smtpd_relay_restrictions = permit_mynetworks,permit_auth_destination,permit_s asl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550

I saw this thread:
https://www.zabbix.com/forum/showthread.php?t=46162

Seems like it is related to the sourceIP? I have trouble understanding him.

I'm confused on what to do next.

Thank you very much,
Bumbaa


guzzijason
18-10-2016, 17:20
Not positive, but you might want to add "random" and/or "random.ca" to the relay_domains section perhaps?

__Jason


kuntay
16-01-2017, 09:56
I get error:

Error: Package: zabbix-server-mysql-3.2.3-1.el6.x86_64 (zabbix-deprecated)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: zabbix-server-mysql-3.2.3-1.el6.x86_64 (zabbix-deprecated)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)

Mine:

locate libmysqlclient
/usr/lib/libmysqlclient.so
/usr/lib/mysql/libmysqlclient.so
/usr/lib/mysql/libmysqlclient.so.18
/usr/lib/mysql/libmysqlclient.so.18.0.0
/usr/lib/mysql/libmysqlclient_r.so
/usr/lib/mysql/libmysqlclient_r.so.18
/usr/lib/mysql/libmysqlclient_r.so.18.0.0
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient_r.so.18.0.0
/usr/lib64/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/mysql/libmysqlclient_r.a


Atsushi
18-01-2017, 04:09
It seems that the installed version of mysql is not the CentOS 6 standard version.
If you want to run in an environment different from the standard version,
try rebuilding the package according to that environment.

The package version of CentOS 6 standard mysql-libs is as follows.
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0

The version you are installing seems to be a newer version.

 

 

Installing Zabbix 3.2 in Centos 6.8 Clean Install Dependencies Errors的更多相关文章

  1. [转]Installing python 2.7 on centos 6.3. Follow this sequence exactly for centos machine only

    Okay for centos 6.4 also On apu.0xdata.loc, after this install was done $ which python /usr/local/bi ...

  2. Installing Supervisor and Superlance on CentOS

    Installing Supervisor1 and Superlance2 on CentOS/RHEL/Fedora can be a little tricky, as the versions ...

  3. CentOS 6.6 nginx install

    /************************************************************************* * CentOS 6.6 nginx instal ...

  4. CentOS 6.6 FTP install

    /************************************************************************* * CentOS 6.6 FTP install ...

  5. CentOS 6.6 MySQL install

    /************************************************************************* * CentOS 6.6 MySQL instal ...

  6. 两台centos,用yum install 安装,一台成功,一台失败

    记录一下问题: 两台centos,用yum install 安装软件,一台成功,一台失败 第一步:查看yum源  yum repolist enabled 疑问:centos安装的方法一致,但yum源 ...

  7. 【zabbix教程系列】三、zabbix 3.4 在centos 7 上安装详细步骤

    一.环境准备 [root@ltt01 ~]# ip a : lo: <LOOPBACK,UP,LOWER_UP> mtu qdisc noqueue state UNKNOWN qlen ...

  8. Zabbix安装部署(CentOS系统下)

    zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统 ...

  9. Zabbix安装(debian,centos)

    lnmp和lamp架构搭建一键安装脚本下载地址:https://lnmp.org/download.html  https://github.com/teddysun/lamp/tree/master ...

随机推荐

  1. 离散化+线段树/二分查找/尺取法 HDOJ 4325 Flowers

    题目传送门 题意:给出一些花开花落的时间,问某个时间花开的有几朵 分析:这题有好几种做法,正解应该是离散化坐标后用线段树成端更新和单点询问.还有排序后二分查找询问点之前总花开数和总花凋谢数,作差是当前 ...

  2. 题解报告:hdu 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活(多重背包)

    Problem Description 急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品, ...

  3. ACM_绝对值

    100块钱都不给我 Time Limit: 2000/1000ms (Java/Others) Problem Description: 今天是广财的ACM周赛,小光来到广财实验楼,想来蹭一下素拓分( ...

  4. QQ文件没有读取权限,60017导致QQ无法登陆的终极解决办法

    每隔一段时间,我的QQ就无法登陆,提示:QQ文件没有读取权限,60017导致QQ无法登陆的终极解决办法 点击了解详情发现里面的解决办法根本不起作用,网上 说的各种解决办法都不起作用,解决办法如下 1. ...

  5. Class.getResourceAsStream()与ClassLoader.getResourceAsStream()获取资源时的路径说明

    Class.getResourceAsStream(): com.xusweeter.iot.ws.vodafone.config.VodafoneServiceConfig.class.getRes ...

  6. git免密码

    法1: git config --global credential.helper store 这样就自动储存密码 法2: 使用ssh访问(https:// 改成 ssh://)

  7. js ajax 数组类型参数传递

    若一个请求中包含多个值,如:(test.action?tid=1&tid=2&tid=3),参数都是同一个,只是指定多个值,这样请求时后台会发生解析错误,应先使用 tradititon ...

  8. String的用法——转换功能

    package cn.itcast_05; /* String类的转换功能: byte[] getByte():把字符串转换成字节数组 复习: public String(byte[] bytes): ...

  9. 将call/apply方法应用于其他对象上的几种方法

    在处理类数组中,发现了两种将数组方法应用于类数组的方法,现将call/apply的常用方式总结一下. 一.当做函数调用 function print_vars(var1,var2){ console. ...

  10. 1、QQ装机部落---腾讯软件

    亲,赚钱快人一步,我给你推荐QQ装机部落!大品牌,口碑好,知名软件,绿色无毒,每天结算,回报高!到这里注册:http://zjbl.qq.com/#/?invid=476058088 返利网邀请码立即 ...