1. Zabbix Introduction
Open source web-based software, open source monitoring system status can also monitor network equipment.
Unlike Nagios, Zabbix will keep the acquired data in the database, so Zabbix needs to have database support
Zabbix can also automatically discover hosts and network devices
Support Email and SMS alerts
Zabbix Most configurations can be done in the Web interface configuration
Official website http://www.zabbix.com/
2. Installing Zabbix
RPM-IVH http://www.lishiming.net/data/attachment/forum/month_1211/epel-release-6-7.noarch.rpm
Installing the RPM package for the lamp environment
Yum install-y httpd mysql mysql-libs php php-mysql mysql-server php-bcmath php-gd php-mbstring
To install the Zabbix server:
Yum install-y zabbix20 zabbix20-agent zabbix20-server zabbix20-server-mysql zabbix20-web zabbix20-web-mysql Net-snmp-devel
Start Zabbix-server zabbix-agent Service
/etc/init.d/zabbix-server start; /etc/init.d/zabbix-agent start
Start the HTTP MySQL service
/ETC/INIT.D/HTTPD start; /etc/init.d/mysqld start
Create a MySQL library, enter password direct return reverse redirect to the library
Mysql-uroot-p-E "Create database Zabbix"
Mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/schema.sql
Mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/images.sql
Mysql-uroot-p--default-character-set=utf8 Zabbix </usr/share/zabbix-mysql/data.sql
3. Web installation Zabbix server IP (192.168.1.117)
Browser access
http://192.168.1.117/zabbix
First step: Click Next
Step Two:
By default there is a warning message "It is not safe to rely on the system ' s timezone settings",
Vim/etc/php.ini
- PHP option Max_input_time -
/ETC/INIT.D/HTTPD restart
Solve the related error message, point Retry (Vim/etc/php.ini)
Step Three:
Create a MySQL account and password
" Grant All on * * to ' zabbix ' @ ' localhost ' identified by ' Zabbix '; "
Configuration Dbuser, Dbpassword
Change # dbpassword= to Dbpassword=zabbix
Verify that the path to the dbsocket= is correct
LS/var/lib/mysql/mysql.sock
Enter MySQL related information, first of all to test, if not pass, you need to debug, test pass, click Next
Name write 127.0.0.1, (can be customized) point next, click Next, finish the last point
Default Administrator account is Admin:zabbix
You will encounter an error such as "Zabbix server is not running", which needs to be edited,
Monitoring and secure operations 1.8 Zabbix server-side installation