I have tested this on different versions of centos and it works fine for system which deployment tools has been installed on it.
1-tar -xzvf zabbix-1.6.2.tar.gz
2-cd zabbix-1.8.4
3-./configure –enable-agent –prefix=/usr/local/zabbix
4-make install
Possible errors = error: no acceptable C compiler found in $PATH
The solution depends on what has already been installed on the server. Usually ‘yum install gcc’ is all that is required.
yum install gcc
yum install gcc.x86_64
Still not working? Try ‘yum update yum’, then ‘yum remove gcc gcc.x86_64’ then ‘yum install gcc’. It should work!
In this step we should configure the agent that we installed:
1-adduser zabbix
Add the zabbix agent ports to your /etc/services file.
2-echo ‘zabbix_agent 10050/tcp’ >> /etc/services
3-echo ‘zabbix_trap 10051/tcp’ >> /etc/services
Copy the sample configs to /etc/zabbix for the agentd.
4-mkdir /etc/zabbix
5-cd zabbix-1.8.4
6-cp misc/conf/zabbix_agentd.conf /etc/zabbix
Now go to /etc/zabbix/zabbix_agentd.conf, and edit:
7-Server=10.0.84.114[Example IP address of the Zabbix Server]
8-Hostname=Mail_Server [Exactly the same name as our zabbix host name – See #1 above. NOTE:This name is case sensitive!]
Next, configure /etc/init.d/
Note: If you are not using a redhat OS, look in zabbix-1.6.2/misc/init.d/ and choose a more appropriate directory before executing the following command.
9-cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd
10-Now go to /etc/init.d/zabbix_agentd, and edit
Just below #!/bin/sh: add these two lines, including the # hash marks.
# chkconfig: 345 95 95
# description: Zabbix Agentd
11-Then edit these two lines, to read as shown below:
BASEDIR=/usr/local/zabbix
ZABBIX_AGENTD=$BASEDIR/sbin/zabbix_agentd [change bin to sbin]
12-Configure automatic starting and stopping of services:
chkconfig –level 345 zabbix_agentd on
13-Next, edit /etc/hosts.allow on the Linux agent to allow the Zabbix Server IP address.
14-Dealing with the Firewall:
If using Webmin, you need to insert a line such as this:
If protocol is TCP and source is and destination port is 10050
This will result in a line in iptables as follows:
ACCEPT tcp – 0.0.0.0/0 tcp dpt: 10050
If you don’t have Webmin, you may need to ‘man iptables’ to check the commands necessary to insert that line in your iptables.
Almost there now:
/etc/init.d/zabbix_agentd start
Check the zabbix_agentd log to see if all is okay!
cat /tmp/zabbix_agentd.log
5392:20090202:115848 zabbix_agentd started. ZABBIX 1.6.2.
5393:20090202:115848 zabbix_agentd collector started
5394:20090202:115848 zabbix_agentd listener started
5395:20090202:115848 zabbix_agentd listener started
5396:20090202:115848 zabbix_agentd listener started
5397:20090202:115848 zabbix_agentd active check started [10.0.84.114:10051]
Log looks ok!
Now go back to the Zabbix Server web-interface and enable the Mail_Server host. After a few moments you should be able to see data in Monitoring –> Latest data.