Building Zabbix Agent 1.8.6 from source on Centos 5.5

This is a followup to an article i just posted “Building Zabbix 1.8.6 from source on Centos 5.5″. Once you have the Zabbix server up and running you will want the agent installed on your other Linux servers so you can monitor them.

Log on as root

Prerequisites
yum install make gcc

Create Zabbix user and group if it does not exist

CMD
/usr/sbin/groupadd zabbix
/usr/sbin/useradd -c 'Zabbix' -g zabbix -s /dev/null zabbix

Download the source.

CMD
cd ~
wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.6.tar.gz?download

Extract Files

CMD
tar zxvf zabbix-1.8.6.tar.gz

Configure and make

CMD
cd zabbix-1.8.6
./configure --enable-agent
make
make install

Copy start up scripts

CMD
cp -a /root/zabbix-1.8.6/misc/init.d/redhat/8.0/zabbix_agentd /etc/init.d/
chown root.root /etc/init.d/zabbix_agentd
chmod +x  /etc/init.d/zabbix_agentd

Edit startup script

CMD
vi /etc/init.d/zabbix_agentd

Change

progdir="/usr/local/zabbix/bin/"

To

progdir="/usr/local/sbin/"

Copy and edit configuration files.

CMD
mkdir -p /etc/zabbix
cp -a /root/zabbix-1.8.6/misc/conf/zabbix_agentd.conf /etc/zabbix/
 
chown zabbix.zabbix /etc/zabbix/zabbix_agentd.conf

Edit agent config

CMD
vi /etc/zabbix/zabbix_agentd.conf

Change

Server=127.0.0.1

Change to zabbix server ip

Server=192.168.1.70

Set permissions on config

CMD
chmod +x /usr/local/sbin/zabbix_agentd

Start the agent

CMD
/usr/local/sbin/zabbix_agentd start

Set the service up

CMD
chkconfig --add zabbix_agentd
chkconfig --level 35 zabbix_agentd on

Verify that the service is up.

CMD
chkconfig --list | grep zabbix

next add the host in the Zabbix web admin.

Comments (5)

  1. 08:00, 2011/10/07Investment ideas  / Reply

    Straight to the point and well written! Why can’t everyone else be like this?

    • 10:34, 2011/12/10Lovie  / Reply

      I’d venture that this atrilce has saved me more time than any other.

  2. 01:29, 2011/12/10Charlotte  / Reply

    Stay with this guys, you’re hepilng a lot of people.

  3. 10:08, 2012/02/06Scotty Slot  / Reply

    IF you’re still on the fence for more posts, sign me up!

  4. 02:32, 2012/02/07grabatron app android  / Reply

    I got what you wish, thanks for swing up. Woh I am willing to happen this website finished google. Thanks For Share Building Zabbix Agent 1.8.6 from source on Centos 5.5.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Pingbacks (0)

› No pingbacks yet.