Skip to content

Install Zabbix – CentOS

November 29, 2016

CentOS7

///systemctl disable firewalld

# yum install httpd httpd-devel

# yum install mariadb-server
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml

yum install nano
yum install epel-release
yum install phpmyadmin
nano /etc/httpd/conf.d/phpMyAdmin.conf
systemctl restart httpd.service
http://server_domain_or_IP/phpMyAdmin


 

 

service httpd start
service mariadb start

# mysql_secure_installation

# rpm -Uvh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

# nano /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Europe/Vilnius

# service httpd restart

# mysql -u root -p

mysql> CREATE USER ‘zabbix’@’localhost’ IDENTIFIED BY ‘***’;GRANT USAGE ON *.* TO ‘zabbix’@’localhost’ IDENTIFIED BY ‘***’ REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;CREATE DATABASE IF NOT EXISTS `zabbix` CHARACTER SET UTF8;GRANT ALL PRIVILEGES ON `zabbix`.* TO ‘zabbix’@’localhost’;

///mysql> CREATE DATABASE zabbix CHARACTER SET UTF8;
///mysql> GRANT ALL PRIVILEGES on zabbix.* to zabbix@localhost IDENTIFIED BY ‘password’;
mysql> FLUSH PRIVILEGES;
mysql> quit

 

 

 

# cd /usr/share/doc/zabbix-server-mysql-3.2.1

gunzip create.sql.gz

#  mysql -u zabbix -p zabbix < create.sql

service zabbix-server start

go to  http://zabbix-server/zabbix/

web -> next, next

login admin / zabbix

 

nano /etc/zabbix/zabbix_server.conf
change DBPassword

getsebool -a | grep zabbix
httpd_can_connect_zabbix –> off
zabbix_can_network –> off
setsebool -P zabbix_can_network=true
setsebool -P httpd_can_connect_zabbix=true


systemctl start zabbix-agent
systemctl enable zabbix-agent
systemctl enable httpd
systemctl enable mariadb
systemctl enable zabbix-server 
reboot

Thanks http://tecadmin.net (http://tecadmin.net/install-zabbix-network-monitoring-on-centos-rhel-and-fedora/#)

 


C:\zabbix_agents\bin\win32\zabbix_agentd.exe --config C:\zabbix_agents\conf\zabbix_agentd.win.conf --install

 

 

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: