The second most important parameter is innodb_buffer_pool_size, which determines how much memory can MySQL get for caching InnoDB tables and index data. You can use the command below to automatically check the number of Zabbix processes and add 150 to that number: :~ $ egrep "^Start.+=" /etc/zabbix/zabbix_nf | awk -F "=" '' We need to increase the maximum permitted number of simultaneous client connections and optimize MySQL – so move to the next step.Ĭonfiguration parameter max_connection s must be larger than the total number of all Zabbix proxy processes plus 150. If you try to start the Zabbix server you may receive an error “ connection to database 'Zabbix' failed: Too many connections” in the log “ /var/log/zabbix/zabbix_server.log” because we are using more Zabbix server processes than MySQL can handle. You can find out more about the parameters supported in a Zabbix server configuration file in the official documentation. Let’s say if you don’t use ICMP checks then set the “ StartPingers” parameter to 1 or if you don’t use active agents then set “ StartTrappers” to 1 and so on. This is not a perfect configuration, keep in mind that you can optimize it even more. Save and exit file ( ctrl+ x, followed by y and enter). Open “ zabbix_nf” file with command: “ sudo nano /etc/zabbix/zabbix_nf” and add this configuration anywhere in file: StartPollers=100 Step 7: Optimizing Zabbix Server (optional)ĭon’t bother with this optimization if you are monitoring a small number of devices, but if you are planning to monitor a large number of devices then continue with this step. You can find more information about Zabbix’s life cycle and release policies on the official website. Sudo dpkg -i zabbix-release_6.2-2+ubuntu$(lsb_release -rs)_all.deb OR Zabbix 6.2 standard version (supported until January, 2023) Sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent Sudo dpkg -i zabbix-release_6.0-4+ubuntu$(lsb_release -rs)_all.deb Zabbix 6.0 LTS version (supported until February, 2027) Step 1: Install Zabbix server, frontend, and agent
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |