Ad Widget

Collapse

Zabbix 2.0 Agent Install on Centos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colhart
    Junior Member
    • Sep 2012
    • 2

    #1

    Zabbix 2.0 Agent Install on Centos

    Afternoon..

    Can someone point me to the upto date documentation or a guide on how to install the ZABBIX agetn on centos / linux. The online docs do not appear to be correct as the detail ./configure and make, however to the tar ball package tghere is no configur file :-(

    Cheers

    Col.
  • aggietex04
    Junior Member
    • Sep 2012
    • 2

    #2
    Here is what I have been using to script install it on my centos systems. I removed my identifying hostnames/ip and bolded the areas you should change for your environment. :


    groupadd -g 130 zabbix ; useradd -u 130 zabbix -c 'Zabbix monitoring' -g zabbix ; cd /root/ ; scp root@server:/root/zabbix.tar . ; tar -xvf zabbix-2.0.2.tar.gz ; cd /root/zabbix-2.0.2/ ; yum -y install gcc ; ./configure --enable-agent ; make -j$[$(cat /proc/cpuinfo| grep -c '^processor')+1] ; make install ; cp conf/zabbix_agentd.conf /usr/local/etc ; cp /root/zabbix-2.0.2/misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/zabbix-agent ; chmod 755 /etc/init.d/zabbix-agent ; chmod 755 /usr/local/sbin/zabbix_agentd ; /etc/init.d/zabbix-agent start ; ps aux | grep zabbix ; rm -rf /root/zabbix-2.0.2.tar.gz ; sed -i 's/Server=127.0.0.1/Server=[SeverIP]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/ServerActive=127.0.0.1/ServerActive=[ServerIP]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/Hostname=Zabbix server/Hostname=[Agent Hostname]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/# ListenIP=0.0.0.0/ListenIP=[AgentIP]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/# LogRemoteCommands=0/LogRemoteCommands=1/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/Server=127.0.0.1/Server=[Server IP]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/ServerActive=127.0.0.1/ServerActive=[Server IP]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/Hostname=Zabbix server/Hostname=[Agent Hostname]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/# ListenIP=0.0.0.0/ListenIP=[Agent IP]/g' /usr/local/etc/zabbix_agentd.conf ; sed -i 's/# LogRemoteCommands=0/LogRemoteCommands=1/g' /usr/local/etc/zabbix_agentd.conf ; rm -rf /tmp/zabbix_agentd.log ; /etc/init.d/zabbix-agent restart ; chkconfig zabbix-agent on
    Last edited by aggietex04; 13-09-2012, 02:28.

    Comment

    • colhart
      Junior Member
      • Sep 2012
      • 2

      #3
      File not the same

      Thank very much for your install instructions, however when I untar the file this is the contents. there is no confure file.

      The source of tyeh agent installation I am using is:

      http://www.zabbix.com/downloads/2.0....3.amd64.tar.gz


      [root@wiki zabbix]# tree /tmp/zabbix/
      /tmp/zabbix/
      bin
      - zabbix_get
      - zabbix_sender
      sbin
      - zabbix_agent
      - zabbix_agent.conf
      - zabbix_agentd

      Comment

      • aggietex04
        Junior Member
        • Sep 2012
        • 2

        #4
        You downloaded the pre compiled binary for a linux 2.6 kernel. You need to get the actual source code package for there to be a configuration file. You can grab it from the zabbix download forums.

        Comment

        • volter
          Member
          Zabbix Certified Specialist
          • Dec 2011
          • 85

          #5
          EPEL is offering 2.0 packages for EL 5 and 6:

          EPEL finally offers Zabbix 2.0 packages. These packages are for you, if you are running RHEL, CentOS, Scientific Linux or any other Red Hat derivative. EPEL aims to provide best quality packages, that follow the same rules and conventions as Red Hat packages and therefore integrate smoothly. If you know what EPEL is, keep on […]

          Comment

          • tim.mooney
            Senior Member
            • Dec 2012
            • 1427

            #6
            Originally posted by volter
            EPEL is offering 2.0 packages for EL 5 and 6:

            http://blog.zabbix.com/zabbix-2-0-pa...entos-sl/1893/
            I totally agree with volter; don't install from source, install it as a package. If you don't want to have the EPEL repo listed and active on all your clients, then just take the zabbix20-agent package from the repo and install it, but definitely use a package.

            Alternately, build your own agent package, perhaps using the EPEL zabbix20 source RPM as a starting point.

            Comment

            Working...