Zabbix monitoring installation and deployment
1. Compile and install zabbix:
Useradd-s/sbin/nologin zabbix
Install the server and agent at the same time and add data to the mysql database. You can use the following command to configure
./Configure -- enable-server -- enable-agent -- with-mysql-enable-ipv6-with-net-snmp-with-libcurl
2. Yum install mysql http php *
Mysql-u root
Grant all onzabbix. * to zabbix @ '2017. 192. %. % 'identified by 'qaz123 ';
Flush privileges
Mysql-u zabbix-pzabbix> schema. SQL
Mysql-u zabbix-pzabbix> images. SQL
Mysql-u zabbix-pzabbix> date. SQL
To enable port 3306 iptables or disable iptables
Zabbix-2.0.9/misc/init. d/Fedora/core/zabbix _ */etc/init. d/
Ln-s/usr/local/zabbix/sbin/zabbix_server/usr/local/sbin/
Chown-R zabbix. zabbix/usr/local/zabbix/
Cp-rp zabbix-2.0.9/frontends/php/*/var/www/html/
3. Set the region to Shanghai vim/etc/php. ini.
Date timezone = Asia/Shanghai
Precautions for Zabbix configuration errors:
Configure: error: Invalid NET-SNMP directory-unable to findnet-snmp-config
Configuration: Error: Invalid NET-SNMP directory-could not find NET-SNMP-Configuration
Configure: error: Not found NET-SNMP library
Configuration: Error: unfound NET-SNMP Library
Solution: Yum install net-snmp-deve
Mysql Error
Error: 'Access denied for user' root' @ 'localhost' (using password: YES )'
Solution
Method 1:
#/Etc/init. d/mysqld stop
# Mysqld_safe -- user = mysql -- skip-grant-tables -- skip-networking &
# Mysql-u root mysql
Mysql> UPDATE user SET Password = PASSWORD ('newpassword') where USER = 'root ';
Mysql> flush privileges;
Mysql> quit
#/Etc/init. d/mysqld restart
# Mysql-uroot-p
Do not forget to add the following parameter-enable-bcmath -- enable-mbstring = all
If YUM is installed, yum install-enable-bcmath -- enable-mbstring may be missing.
Or rpm install-nodeps -- force
ZABBIX details: click here
ZABBIX: click here
Install and deploy the distributed monitoring system Zabbix 2.06
Install and deploy the distributed monitoring system Zabbix 2.06
Install and deploy Zabbix in CentOS 6.3
Zabbix distributed monitoring system practice
Under CentOS 6.3, Zabbix monitors apache server-status
Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3