Please Wait, Loading...

Monday 12 October 2015

Instalasi Agent Zabbix di CentOS

Berikut langkah-langkah dalam Instalasi Agen Zabbix diCentOS, Semoga bermanfaat

1. Menambahakan repository
CentOS/RHEL 7:
# rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/7/x86_64/zabbix-release-2.2-1.el7.noarch.rpm

CentOS/RHEL 6:
# rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm

CentOS/RHEL 5:
# rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm
2. Upgrade Yum

server@vmhos:~$ yum upgrade

3. Instalasi agent zabbix

server@vmhos:~$ yum install zabbix zabbix-agent

4. Konfigurasi zabbix_agentd

server@vmhos:~$ sudo vi /etc/zabbix/zabbix-agentd.conf
 ### Option: EnableRemoteCommands
#       Whether remote commands from Zabbix server are allowed.
#       0 - not allowed
#       1 - allowed
#
# Mandatory: no
# Default:
EnableRemoteCommands=1


### Option: Server
#       List of comma delimited IP addresses (or hostnames) of Zabbix servers.
#       Incoming connections will be accepted only from the hosts listed here.
#       If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
#
# Mandatory: no
# Default:
# Server=

Server=zabbix.myserver.co.id

### Option: Hostname
#       Unique, case sensitive hostname.
#       Required for active checks and must match hostname as configured on the server.
#       Value is acquired from HostnameItem if undefined.
#
# Mandatory: no
# Default:
# Hostname=

#Hostname=Zabbix server

5. Cek status service zabbix

server@vmhos:~$ /etc/init.d/zabbix-agent status

6. Bila status service masih Off, lakukan Starting Service

server@vmhos:~$ /etc/init.d/zabbix-agent start

7. Konfig service zabbix-agent agar selalu on ketika server dalam keadaan power on atau reboot

server@vmhos:~$ chkconfig --level 235 zabbix-agent on