Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ZABBIX
- 4. http://yallalabs.com/linux/how-to-install-zabbix-3-4-server-on-centos-7-rhel-7/
- 1.https://www.howtoforge.com/tutorial/centos-zabbix-system-monitoring/
- 2.https://www.zabbix.com/forum/zabbix-cookbook/50041-zabbix-server-install-centos-7?t=57691
- 3.https://www.youtube.com/watch?v=GKBAmtzWI5Y
- # yum install httpd -y
- # yum install php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml -y
- # yum install mariadb-server -y
- # systemctl enable httpd
- # systemctl start httpd
- # systemctl enable mariadb
- # systemctl start mariadb
- # mysql_secure_installation
- Remove anonymous users? [Y/n] Y
- Disallow root login remotely? [Y/n] Y
- Disallow root login remotely? [Y/n] Y
- Remove test database and access to it? [Y/n] Y
- Reload privilege tables now? [Y/n] Y
- # rpm -import https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
- # rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-sender-3.4.5-1.el7.x86_64.rpm
- # yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender zabbix-java-gateway -y
- # vim /etc/httpd/conf.d/zabbix.conf
- php_value date.timezone Asia/Dhaka
- # systemctl reload httpd
- # mysql -u root -p
- > CREATE DATABASE zabbixdb CHARACTER SET utf8 COLLATE utf8_bin;
- > GRANT ALL PRIVILEGES ON zabbixdb.* TO zabbixuser@localhost IDENTIFIED BY "zabbix";
- > FLUSH PRIVILEGES;
- > EXIT
- # zcat /usr/share/doc/zabbix-server-mysql-3.4.11/create.sql.gz | mysql -u root -p zabbixdb
- # mysql -u root -p
- > show databases;
- > show tables;
- >exit
- # vim /etc/zabbix/zabbix_server_conf
- DBHost=localhost
- DBName=zabbixdb
- DBUser=zabbixuser
- DBPassword=zabbix
- :wq
- # firewall-cmd --permanent --add-service=http
- # firewall-cmd --permanent --zone=public --add-port=10051/tcp
- # firewall-cmd --permanent --zone=public --add-port=10050/tcp
- # firewall-cmd --reload
- # systemctl enable zabbix-server
- # systemctl start zabbix-server
- # systemctl enable zabbix-agent
- # systemctl start zabbix-agent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement