Zabbix Installation Section
Installing the Zabbix source
RPM-IVH http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
Zabbix Server-side installation
Yum-y Install Zabbix-server-mysql zabbix-web-mysql zabbix-java-gateway zabbix-web
Zabbix Client Installation
Yum-y Install Zabbix-agent
Information required to import Zabbix
cd/usr/share/doc/zabbix-server-mysql-3.4.3
Configuring the Zabbix parameter
The main is the following several options parameters need to be set (8GB memory for example):
Dbpassword The custom password that is set in the 3rd line of step 12th
cachesize=512m
(CacheSize in 371 rows)
historycachesize=128m
(Historycachesize in 397 rows)
historyindexcachesize=128m
(Historyindexcachesize in 405 rows)
trendcachesize=128m
(Trendcachesize in 414 rows)
valuecachesize=256m
(Valuecachesize in 425 rows)
Timeout=30
(Timeout in 432
Other parameters remain the default values
If you need to monitor VMware virtual machines, you will also need to set the following option parameters:
startvmwarecollectors=2
(Startvmwarecollectors in 272 rows
vmwarecachesize=256m
(Vmwarecachesize in 298 rows)
vmwaretimeout=300
(Vmwaretimeout in 306 rows)
17. Configure PHP parameters in Apache (8GB memory for example)
sudo vim/etc/httpd/conf.d/zabbix.conf
Php_value Max_execution_time 600
Php_value Memory_limit 256M
Php_value post_max_size 32M
Php_value upload_max_filesize 32M
Php_value Max_input_time 600
Php_value Always_populate_raw_post_data-1
Date.timezone Remove the comment symbol # and change the value to Asia/shanghai
18. Restart the system
Systemctl Stop mysqld && reboot
19. Start ZBX
sudo systemctl start httpd && systemctl start Zabbix-server
20. Enter the IP address of the HTTP://ZBX monitoring server in the browser/zabbix, Zabbix the page initialization configuration
This page PHP setup requires all OK
If the password is wrong, you cannot jump to the next step. The password is set in the previous [email protected]
Note: In the 4th step of the "Zabbix Server Detail" page, "name" can fill in the descriptive text of this monitoring system, support Chinese, a bit like the name of the site.
21, the first login ZBX monitoring system, the default user name admin, the default password Zabbix, confirm that the system can log in normally.
22. After logging into the system, confirm that the value of Zabbix server is running yes.
Then select Administrator–> users–> Admin
23, back to "monitoring" –> "instrument panel", you can see the monitoring system has been set to the Chinese interface.
Zabbix_agentd.exe Command Description
-C Make configuration file location
-I installation Client
-S Start client
-X Stop Client
-D Uninstalling the client
Zabbix_agent Monitoring TCP/UDP Protocol
Userparameter=sockstat.sockets, Netstat-ano | find/v "Hola"/C
Userparameter=sockstat.tcp.inuse, Netstat-ano | f INDSTR established
Userparameter=sockstat.tcp.inuse.count, Netstat-ano | find/c "established"
UserParameter= Sockstat.tcp.orphan, Netstat-ano | findstr close_wait
Userparameter=sockstat.tcp.orphan.count, Netstat-ano | find/c "Close_wait"
UserParameter= Sockstat.tcp.timewait, Netstat-ano | findstr time_wait
Userparameter=sockstat.tcp.timewait.count, Netstat-ano | find/c "Time_wait"
UserParameter= sockstat.tcp.allocated, Netstat-ano | findstr LISTENING
Userparameter=sockstat.tcp.allocated.count, Netstat-ano | find/c "LISTENING"
userparameter= Sockstat.udp.inuse, Netstat-ano | findstr UDP
Userparameter=sockstat.udp.inuse.count, Netstat-ano | find/c "UDP"
Database mysql parameter configuration
innodb_file_per_table = 1
Innodb_status_file = 1
Innodb_buffer_pool_size = 6G
Innodb_flush_log_at_trx_commit = 2
Innodb_log_buffer_size = 16M
Innodb_log_file_size = 64M
Innodb_support_xa = 0
Default-storage-engine = InnoDB
Bulk_insert_buffer_size = 8M
Join_buffer_size = 16M
Max_heap_table_size = 32M
Tmp_table_size = 32M
Max_tmp_tables = 48
Read_buffer_size = 32M
Read_rnd_buffer_size = 16M
Key_buffer_size = 32M
Thread_cache_size = 32
Innodb_thread_concurrency = 8
Innodb_flush_method = O_direct
Innodb_rollback_on_timeout = 1
Query_cache_size = 16M
Query_cache_limit = 16M
Collation_server = Utf8_bin
Character_set_server = UTF8
zabbix3.4 for CENTOS7 Installation