Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile and install zabbix

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to compile and install zabbix", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to compile and install zabbix" this article.

1. Download resources

Download the installation package (search the Internet by yourself)

Get package zabbix-3.4.6.tar.gz

two。 Compilation and installation

The creation of the user group and the setting of the user's home directory are skipped.

Cd / zabbix/zabbix; tar-zxvf zabbix-3.4.6.tar.gz; cd zabbix-3.4.6;./configure-- prefix=/zabbix/zabbix3.4-- enable-agent-- enable-server-- enable-java-with-mysql=/mysql/bin/mysql_config-- with-net-snmp-- with-libcurl-- with-libxml2l;make&&make install

-- enable-java is a java monitoring module, which is used to monitor Tomcat. The following parameters may be lacking, and the modules used will be added according to the actual requirements during compilation.

If there is a problem with the compilation, install whatever is missing.

3. Create a zabbix user group

This operation is too simple, slightly.

4. Install related services

Install mysql, install php, modify php configuration file, create zabbix library zabbix database user, correct authorization, import zabbix initial library (three sql files), configure nginx host, point nginx root path to zabbix initial php configuration location.

These are all platitudes and I don't want to talk about them. The main reason is that there is such a long time before and after writing the document that I don't want to organize it. )

Encountered a problem:

When upgrading zabbix, it is impossible to directly source the backup data of 4.0 when upgrading from 3.4to 4.0. It will cause zabbix to collapse, upgrade, etc., remember to back up. In a large environment, we have to set up agents to share the pressure on the server side. The account password and library of the zabbix connection database are written in the main configuration file. The account password and database of the php connection database are written in the zabbix.conf.php file under the conf of the zabbix web configuration. If the mysql zabbix library has made any changes, they all need to be changed. If there is a problem logging in to the zabbix web interface, it is likely that there is a problem with database authorization. When zabbix imports a xml file, you can add client_max_body_size 4m in the zabbix nginx configuration field when you import the file size. I remember that it is useless to adjust the size here, not only in nginx, but also in several places in php, which is also troublesome to find. The proxy location needs to be created on the zabbix server zabbix_server.conf web side: Administration-proxieszabbix proxy zabbix_proxy.conf, setting.sh (java configuration file). In the zabbix_proxy.conf configuration, the server and serveractive in the Administration-proxieszabbix agent zabbix_agentd.conf zabbix_agentd.conf are written to the proxy IP corresponding to the hostname. When the host is created on the web, the agent interfaces normally fill in its own ip and port. Select monitored by proxy at the bottom to check all the contents of the article "how to compile and install zabbix" above. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report