Ad Widget

Collapse

Zabbix agent on Centos 6.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qbab
    Junior Member
    • Mar 2015
    • 3

    #1

    Zabbix agent on Centos 6.8

    Hi all
    I've problem with installing zabbix-agent on my Centos6.8
    It tries to install package for Centos 7
    Code:
    #cat /etc/centos-release 
    CentOS release 6.8 (Final)
    [root@server zabbix-3.0.1]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
    Retrieving http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
    Preparing...                ########################################### [100%]
       1:zabbix-release         ########################################### [100%]
    [root@server zabbix-3.0.1]# yum install -y zabbix-agent
    Loaded plugins: fastestmirror, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: ftp.icm.edu.pl
     * extras: ftp.icm.edu.pl
     * updates: mirror-pl.kielcetechnologypark.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-agent.x86_64 0:3.0.5-1.el7 will be installed
    --> Processing Dependency: systemd for package: zabbix-agent-3.0.5-1.el7.x86_64
    --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: zabbix-agent-3.0.5-1.el7.x86_64
    --> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: zabbix-agent-3.0.5-1.el7.x86_64
    --> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: zabbix-agent-3.0.5-1.el7.x86_64
    --> Finished Dependency Resolution
    Error: Package: zabbix-agent-3.0.5-1.el7.x86_64 (zabbix)
               Requires: libc.so.6(GLIBC_2.17)(64bit)
    Error: Package: zabbix-agent-3.0.5-1.el7.x86_64 (zabbix)
               Requires: libc.so.6(GLIBC_2.14)(64bit)
    Error: Package: zabbix-agent-3.0.5-1.el7.x86_64 (zabbix)
               Requires: systemd
    Error: Package: zabbix-agent-3.0.5-1.el7.x86_64 (zabbix)
               Requires: libc.so.6(GLIBC_2.15)(64bit)
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    On different server with centos 6.6 everything goes well.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Seems you have broken yum setup because yum is downloading el7 packages instead el6 ones.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • qbab
      Junior Member
      • Mar 2015
      • 3

      #3
      Originally posted by kloczek
      Seems you have broken yum setup because yum is downloading el7 packages instead el6 ones.
      You're right.
      I forgot to clear yum cache.

      Code:
      [root@server zabbix-3.0.1]# yum clean all
      Loaded plugins: fastestmirror, security
      Cleaning repos: base extras updates virtualbox zabbix zabbix-non-supported
      Cleaning up Everything
      Cleaning up list of fastest mirrors
      
      [root@server zabbix-3.0.1]# yum install zabbix-agent
      Loaded plugins: fastestmirror, security
      Setting up Install Process
      Determining fastest mirrors
       * base: ftp.icm.edu.pl
       * extras: ftp.icm.edu.pl
       * updates: centos.hitme.net.pl
      base                                                                                                                                                                                    | 3.7 kB     00:00     
      base/primary_db                                                                                                                                                                         | 4.7 MB     00:05     
      extras                                                                                                                                                                                  | 3.4 kB     00:00     
      extras/primary_db                                                                                                                                                                       |  37 kB     00:00     
      updates                                                                                                                                                                                 | 3.4 kB     00:00     
      updates/primary_db                                                                                                                                                                      | 3.1 MB     00:02     
      virtualbox                                                                                                                                                                              |  951 B     00:00     
      virtualbox/primary                                                                                                                                                                      |  13 kB     00:00     
      virtualbox                                                                                                                                                                                               40/40
      zabbix                                                                                                                                                                                  |  951 B     00:00     
      zabbix/primary                                                                                                                                                                          |  10 kB     00:00     
      zabbix                                                                                                                                                                                                   80/80
      zabbix-non-supported                                                                                                                                                                    |  951 B     00:00     
      zabbix-non-supported/primary                                                                                                                                                            | 3.8 kB     00:00     
      zabbix-non-supported                                                                                                                                                                                     15/15
      Resolving Dependencies
      --> Running transaction check
      ---> Package zabbix-agent.x86_64 0:3.0.5-1.el6 will be installed
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      ===============================================================================================================================================================================================================
       Package                                              Arch                                           Version                                              Repository                                      Size
      ===============================================================================================================================================================================================================
      Installing:
       zabbix-agent                                         x86_64                                         3.0.5-1.el6                                          zabbix                                         322 k
      
      Transaction Summary
      ===============================================================================================================================================================================================================
      Install       1 Package(s)
      
      Total download size: 322 k
      Installed size: 1.0 M
      Is this ok [y/N]: y
      Downloading Packages:
      zabbix-agent-3.0.5-1.el6.x86_64.rpm                                                                                                                                                     | 322 kB     00:01     
      warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
      Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
      Importing GPG key 0x79EA5ED4:
       Userid : Zabbix SIA <[email protected]>
       Package: zabbix-release-3.0-1.el6.noarch (installed)
       From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
      Is this ok [y/N]: y
      Running rpm_check_debug
      Running Transaction Test
      Transaction Test Succeeded
      Running Transaction
      Warning: RPMDB altered outside of yum.
        Installing : zabbix-agent-3.0.5-1.el6.x86_64                                                                                                                                                             1/1 
        Verifying  : zabbix-agent-3.0.5-1.el6.x86_64                                                                                                                                                             1/1 
      
      Installed:
        zabbix-agent.x86_64 0:3.0.5-1.el6                                                                                                                                                                            
      
      Complete!
      [root@server zabbix-3.0.1]#

      Comment

      Working...