0% found this document useful (0 votes)
254 views

Zabbix Insallation

The document describes the steps to install and configure Zabbix monitoring software on a server. It includes installing required packages and dependencies through yum, configuring the database, Zabbix server and agent processes, firewall rules and SELinux settings. The end of the document covers installing the Zabbix agent on a Windows machine.

Uploaded by

zayalaksme
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
254 views

Zabbix Insallation

The document describes the steps to install and configure Zabbix monitoring software on a server. It includes installing required packages and dependencies through yum, configuring the database, Zabbix server and agent processes, firewall rules and SELinux settings. The end of the document covers installing the Zabbix agent on a Windows machine.

Uploaded by

zayalaksme
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

>>> zabbix INSTALLATION

yum update
yum install httpd -y
yum install mariadb-server mariadb -y
yum install php php-mysql php-gd php-pear -y
yum install epel-release -y
yum repolist -y
rpm --import https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
rpm -Uv http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-
2.el7.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway
-y

>>>> CONFIGURATION
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10050/tcp
firewall-cmd --permanent --add-port=10051/tcp
systemctl restart firewalld
systemctl start httpd
systemctl start mariadb
systemctl enable httpd
systemctl enable mariadb

mysql_secure_installation
# for 1st time running there is no password, so press enter to skip password.
#Set root password for MARIADB, type yes for remain questions.

vi /etc/httpd/conf.d/zabbix.conf
#change time zone to Los Angeles
# add network address instead of x.x.x.x/x
# we can access zabbix server from entered network only
# to access any network add keyworkd " all " insted of x.x.x.x/x
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from x.x.x.x/x
php_value date.timzone America/Los_Angeles

mysql -u root -p
# enter db password
create database zabbixdb character set utf8;
grant all privileges on zabbixdb.* to 'zabbixuser'@'localhost' identified by
'123qwe';
flush privileges;
exit

cd /usr/share/doc/zabbix-server-mysql-3.4.11/
zcat create.sql.gz | mysql -u root -p zabbixdb
# enter db password

vi /etc/zabbix/zabbix_server.conf
DBName=zabbixdb
DBUser=zabbixuser
DBPassword=123qwe

vi /etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname= zabbix server

vi /etc/php.ini
# change following parameter values
max_execution_time = 600
max_input_time = 600
memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 16M
date.timezone = America/Los_Angeles

>> Allowing Zabbix-server through SELINUX

systemctl stop zabbix-server


yum install policycoreutils-python
cat /var/log/audit/audit.log | grep zab | audit2allow -M zabbix-server
semodule -i zabbix-server.pp
reboot

systemctl start httpd


systemctl start mariadb
systemctl start zabbix-server
systemctl start zabbix-agent
systemctl enable zabbix-server
systemctl enable zabbix-agent
systemctl enable httpd
systemctl enable mariadb
systemctl restart mariadb
systemctl restart httpd
systemctl restart zabbix-server
systemctl restart zabbix-agent
systemctl restart firewalld

systemctl status mariadb | grep Active:


systemctl status httpd | grep Active:
systemctl status zabbix-server | grep Active:
systemctl status zabbix-agent | grep Active:

>>> CENT-OS INSTALLATION

� Download Cent OS image from internet.


� Create VM in Hyper-v & follow the wizard::
� Select generation-1 (only worked)
� While configure Networking, select Default Switch for Remote Access &
Internet connection
� Point to downloaded Cent OS ISO file.

� After starting VM, after some time it shows installation summary:


� Choose below options:
� Software selection: Infrastructure Server
� Network & Hostname: On
� Begin the installation
click on begin installation
While installing create root password.

>>> ZABBIX AGENT INSTALLATION:

On your windows computer, create the directory C:\Zabbix, and download the
installer zabbix within that folder.�

Unzip the installation package and go to the same directory.

Copy the binaries and example configuration file into the c: \ zabbix.
� zabbix_agentd
� zabbix_get
� zabbix_sender
� zabbix_agentd.win.conf

Rename the configuration file to zabbix_agentd.conf�
Edit the zabbix_agentd.conf configuration file, delete all its contents and enter
the following directives. (Zabbix server IP address - 200.200.200.200)

Open�zabbix_agentd.conf�in your favorite text editor and edit the following


parameters:
LogFile=c:\zabbix\zabbix_agentd.log
Server=IP_Zabbix_Server
ServerActive=IP_Zabbix_Server

Install Windows Zabbix Agent

C:\zabbix>zabbix_agentd.exe --config zabbix_agentd.conf --install


zabbix_agentd.exe [4376]: Service "ZABBIX Agent" installedsuccessfully.

To start the service just type:


C:\zabbix>zabbix_agentd.exe --start

You might also like