Advertisement
piasxp

Zabbix Installation Guide

Jul 23rd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.99 KB | None | 0 0
  1. ZABBIX
  2.  
  3. 4. http://yallalabs.com/linux/how-to-install-zabbix-3-4-server-on-centos-7-rhel-7/
  4.  
  5. 1.https://www.howtoforge.com/tutorial/centos-zabbix-system-monitoring/
  6. 2.https://www.zabbix.com/forum/zabbix-cookbook/50041-zabbix-server-install-centos-7?t=57691
  7. 3.https://www.youtube.com/watch?v=GKBAmtzWI5Y
  8.  
  9.  
  10. # yum install httpd -y
  11. # yum install php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml -y
  12. # yum install mariadb-server -y
  13. #  systemctl enable httpd
  14. #  systemctl start httpd
  15. # systemctl enable mariadb
  16. # systemctl start mariadb
  17. # mysql_secure_installation
  18.      Remove anonymous users? [Y/n] Y
  19.      Disallow root login remotely? [Y/n] Y
  20.      Disallow root login remotely? [Y/n] Y
  21.      Remove test database and access to it? [Y/n] Y
  22.      Reload privilege tables now? [Y/n] Y
  23.  
  24. # rpm -import https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
  25. # rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-sender-3.4.5-1.el7.x86_64.rpm
  26. # yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender zabbix-java-gateway -y
  27. # vim /etc/httpd/conf.d/zabbix.conf
  28.      php_value date.timezone Asia/Dhaka
  29. # systemctl reload httpd
  30.  
  31.  
  32. # mysql -u root -p
  33. > CREATE DATABASE zabbixdb CHARACTER SET utf8 COLLATE utf8_bin;
  34. > GRANT ALL PRIVILEGES ON zabbixdb.* TO zabbixuser@localhost IDENTIFIED BY "zabbix";
  35. > FLUSH PRIVILEGES;
  36. > EXIT
  37.  
  38.  
  39. # zcat /usr/share/doc/zabbix-server-mysql-3.4.11/create.sql.gz | mysql -u root -p zabbixdb
  40. # mysql -u root -p
  41.  
  42. > show databases;
  43. > show tables;
  44. >exit
  45.  
  46.  
  47. # vim /etc/zabbix/zabbix_server_conf
  48.  
  49.    DBHost=localhost
  50.    DBName=zabbixdb
  51.    DBUser=zabbixuser
  52.    DBPassword=zabbix
  53.    :wq
  54.  
  55.  
  56.  
  57. # firewall-cmd --permanent --add-service=http
  58. # firewall-cmd --permanent --zone=public --add-port=10051/tcp
  59. # firewall-cmd --permanent --zone=public --add-port=10050/tcp
  60. # firewall-cmd --reload
  61.  
  62. # systemctl enable zabbix-server
  63. # systemctl start zabbix-server
  64. # systemctl enable zabbix-agent
  65. # systemctl start zabbix-agent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement