Zabbix 3.4 on Linux 7/6
Zabbix is an open source network monitoring software designed to monitor and track the status of various network devices, servers, and virtual machines
Update system
# yum update
Install required packages
# yum install -y mariadb-server
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml php-bcmath
# service httpd start
# systemctl start httpd
# service mysqld start ………. Linux 5/6
Install Repository with MySQL database
Note: Zabbix 3.0 require PHP 5.4 later
# systemctl start mariadb ……….. Linux 7
# mysql_secure_installation
Configure yum repository to install Zabbix
CentOS/RHEL 7:
# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
CentOS/RHEL 6:
# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm
Install Zabbix server
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway
# yum update zabbix-server-mysql zabbix-web-mysql zabbix-agent
# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-mbstring-5.4.16-45.el7.x86_64.rpm
# rpm –Uvh php-mbstring-5.4.16-45.el7.x86_64.rpm
# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-bcmath-5.4.16-45.el7.x86_64.rpm
# rpm -Uvh php-bcmath-5.4.16-45.el7.x86_64.rpm
Now install Zabbix Server
Create initial database
# mysql -u root -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Password';
FLUSH PRIVILEGES;
mysql> quit;
Import initial schema and data. You will be prompted to enter your newly created password.
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix -p zabbix
Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
Configure PHP for Zabbix frontend
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.# php_value date.timezone Asia/Kolkata
Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot:
# systemctl restart zabbix-server zabbix-agent httpd mariadb
# systemctl enable zabbix-server zabbix-agent httpd mariadb
Now your Zabbix server is up and running!
1. Configure Zabbix frontend
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow steps described in Zabbix documentation: Installing frontend
2. Start using Zabbix
Check for pre-requisites
Check if you meet all the system requirements. If not configure your php.ini.
Configure DB Connection
Fill your DB details which you created and click on Next Step
Zabbix server details
Edit your server details
Pre-Installation Summary
This will give you a summary of your configuration. Click on Next Step
Install Zabbix
Click on Finish button to install Zabbix serverInstall Zabbix
Click on Finish button to install Zabbix serverInstall Zabbix
Click on Finish button to install Zabbix serverdd
Install Zabbix
Click on Finish button to install Zabbix server
Login to Zabbix
Login to Zabbix with following credentials
UserName : Admin
Password : Zabbix
You will see your Zabbix home screen now
No comments:
Post a Comment