Zabbix:Installation A

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Configure snmptt)
Line 51: Line 51:
  
 
'''Note''': perl-Net-SNMP will be installed together with snmptt
 
'''Note''': perl-Net-SNMP will be installed together with snmptt
 
===Configure Service===
 
# chkconfig snmptt on
 
# chkconfig snmptrapd on
 
  
 
===Configure Zabbix Server===
 
===Configure Zabbix Server===
Line 78: Line 74:
 
  # cp snmptt.conf /etc/snmp/snmptt.con
 
  # cp snmptt.conf /etc/snmp/snmptt.con
  
===Start Services===
+
===Start services===
service snmptrapd start
+
# chkconfig snmptt on
service snmptt start
+
# chkconfig snmptrapd on
 +
# service snmptrapd start
 +
# service snmptt start
  
===Open firewall==
+
===Open firewall===
 +
Make sure the port
 +
# iptable -L

Revision as of 16:11, 29 November 2014


Contents

This procedure applies to Zabbix v.2.4 on CentOS6

Install Zabbix

1. Follow RedHat/CentOS installation procedure from Zabbix documentation

https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages#red_hat_enterprise_linuxcentos

Note: It is possible that you might get the following error while starting httpd on a new CentOS installation:

# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for myZabbixHost
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Make sure to configure your hostname "myZabbixHost" to /etc/hosts

2. Configure services to automatically starts on reboot of the server

# chkconfig mysqld on
# chkconfig zabbix-server on
# chkconfig zabbix-agent on
# chkconfig httpd on

3. Disable SELinux

# setenforce 0

Edit /etc/selinux/config and set SELINUX to disabled:

# vi /etc/selinux/config
SELINUX=disabled

4. Configure the Zabbix frontend

Follow the procedure in the section Installing frontend from Zabbix documentation

https://www.zabbix.com/documentation/2.4/manual/installation/install#installing_zabbix_web_interface

5. Login to Zabbix frontend

In your browser, open Zabbix URL: http://<server_ip_or_name>/zabbix

The default user name is Admin, password zabbix

Configure SNMP traps for Zabbix

Reference from http://www.zabbix.org/wiki/ConfigureSnmptrapsCentos6_RHEL6).

Install Packages

# yum install net-snmp-utils
# yum install net-snmp-perl
# yum install snmptt

Note: perl-Net-SNMP will be installed together with snmptt

Configure Zabbix Server

# vi /etc/zabbix/zabbix_server.conf
StartSNMPTrapper=1
SNMPTrapperFile=/var/log/snmptt/snmptt.log

Configure snmptrapd

# vi /etc/snmp/snmptrapd.conf
traphandle default /usr/sbin/snmptthandler
authCommunity   log,execute,net public

Configure snmptt

# vi /etc/snmp/snmptt.ini
translate_log_trap_oid = 2
net_snmp_perl_enable = 1
date_time_format = %H:%M:%S %Y/%m/%d
log_file = /var/log/snmptt/snmptt.log
log_system_enable = 1

Install TelcoBridges snmptt.conf

# wget http://download.distribution.telcobridges.com/zabbix/snmptt.conf
# cp snmptt.conf /etc/snmp/snmptt.con

Start services

# chkconfig snmptt on
# chkconfig snmptrapd on
# service snmptrapd start
# service snmptt start

Open firewall

Make sure the port

# iptable -L
Personal tools