First time here? Checkout the FAQ!
Welcome to Dettonville Q&A, where you can ask questions and receive answers from other members of the community.

How to install zabbix agent on OpenFiler box?

+1 vote
How to install zabbix agent on OpenFiler box?
asked Oct 13, 2013 in Zabbix by l-johnson Evoker (540 points)  
recategorized Aug 2, 2014 by l-johnson

1 Answer

0 votes
Best answer

You will need to compile the agent from source as I could not find a packaged or binary distribution of the agent.


But no worry, this is fairly easy to do.

  1. Login as root on your openfiler server.
  2. Next, prepare your openfiler environment for compiler if not already done. This can be done by executing the following commands:

    conary update gcc
    conary update libtool
    conary update glib
    conary update glib:devel
    conary update glibc
    conary update glibc:devel
    conary update automake
    conary update autoconf
    conary update pkgconfig
  3. Then execute each of the following commands to setup and compile the zabbix agent environment.

    cd /usr/local/src/
    useradd -c "Zabbix Monitoring System" -s /sbin/nologin -r -d /var/lib/zab$
    tar zxvf zabbix-2.0.9.tar.gz
    chown -R zabbix ./zabbix-2.0.9
    cd zabbix-2.0.9
    ./configure -enable-agent
    make install
    mkdir -p /var/log/zabbix-agent/
    mkdir -p /var/run/zabbix/
    mkdir -p /var/lib/zabbix/
    chown zabbix:zabbix /var/log/zabbix
    chown zabbix:zabbix /var/run/zabbix
    wget -U "perl" -O /etc/rc.d/init.d/zabbix-agent
    chmod 755 /etc/rc.d/init.d/zabbix-agent
    chkconfig --add zabbix-agent
    chkconfig --level 35 zabbix-agent on
    mkdir -p /etc/zabbix
    mkdir -p /etc/zabbix/zabbix_agentd.conf.d
    wget -U "perl" -O /etc/zabbix/zabbix_agentd.conf
    cp src/zabbix_agent/{zabbix_agent,zabbix_agentd} /usr/local/sbin/.
    chmod 755 /usr/local/sbin/zabbix_agent*
  4. Next, open the openfiler server firewall on port 10050 to allow zabbix-agent communication.  Edit the firewall rules by executing:

    nano /etc/sysconfig/iptables

    Append the following rule to the file:
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 10050 -j ACCEPT

    Save and close the file. Restart iptables:

    /etc/init.d/iptables restart
    service iptables restart
  5. Then edit the Zabbix agent configuration file to add the server and hostname:

    nano /etc/zabbix/zabbix_agentd.conf and put the IP address of our Zabbix
  6. Find the server in the Server line and specify the hostname of the current system in the Hostname line:

  7. Start the service.
    /etc/init.d/zabbix-agent start
  8. Make sure iptables is allowing port 10050 connection

iptables -L -n


answered Oct 13, 2013 by l-johnson Evoker (540 points)  
edited Aug 3, 2014 by l-johnson
 | Minimalist Answer Theme by Digitizor Media
Powered by Question2Answer