1
2
|
groupadd zabbix useradd -g zabbix zabbix |
Download and install latest version of zabbix from source.
1. cd /usr/local/src 2. wget http://freefr.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.3/zabbix-3.0.3.tar.gz 3. tar -zxvf zabbix-3.0.3.tar.gz 4. cd zabbix-3.0.3 5. ./configure --enable-agent 6. make install |
Edit Zabbix agent configuration file at
1
|
vi /usr/local/etc/zabbix_agentd.conf |
Add Zabbix server IP address to the file.
1
|
Server = 127.0.0.1, ZABBIX_SERVER_IP |
Start zabbix_agentd
1
|
[root@server ~]# zabbix_agentd |
Verify Zabbix agent log for errors.
1
|
tail /tmp/zabbix_agentd.log |
Then login to Zabbix Dashboard on zabbix server and add a new host by entering the following details.
1
2
3
|
Host name: client host name Groups: Linux Servers IP address: client host IP |
Enable Zabbix Agent to start on Boot CentOS
1
2
3
4
|
[root@server ~]# cd /usr/local/src/zabbix-*/ [root@server zabbix-3.0.3]# cp misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/zabbix_agentd [root@server zabbix-3.0.3]# chkconfig --add zabbix_agentd [root@server zabbix-3.0.3]# chkconfig zabbix_agentd on |
If everything is alright, you should see 3:on like below when running the following command.
1
2
3
|
[root@server ~]# chkconfig | grep zabbix zabbix_agentd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@server ~]# |
Enable Zabbix Agent to start on Boot (Ubuntu/Debian)
1
2
3
4
|
cd ~/zabbix-source/zabbix-*/ cp misc/init.d/debian/zabbix-agent /etc/init.d chmod 755 /etc/init.d/zabbix-agent update-rc.d zabbix-agent defaults |
Reference: https://blog.hostonnet.com/install-zabbix-agent-from-source-linux