Zabbix Insallation
Zabbix Insallation
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
On your windows computer, create the directory C:\Zabbix, and download the
installer zabbix within that folder.�
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)