In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The latest version of ZABBIX 4.2 updates a lot of features, among which the hostname that controls auto-discovery eliminates the worry of manual renaming when automatically discovering network devices, which is a very useful feature, especially when using Zabbix or SNMP agents to achieve a large degree of automation.
For more detailed information on the new features, please refer to the Zabbix website: https://www.zabbix.com/cn/whats_new_4_2
Now let's start building Zabbix4.2:
Environment configuration: permanently shut down selinux:
Sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config
Turn off the firewall and do not boot:
Systemctl stop firewalld.servicesystemctl disable firewalld.service first adds the Zabbix-yum source:
Rpm-Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
Here my system is centos7, so the link is zabbix/4.2/rhel/7/. If it is 6, you can change it to zabbix/4.2/rhel/6/.
two。 Install the zabbix server:
Yum-y remove mariadb-libs # Uninstalls databases that conflict with mysql
Yum-y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get Note: when Error downloading appears, it may be caused by the instability of the Yum source network. You can re-enter the command breakpoint to resume transmission, or install a single yum package.
3. Install and configure the mysql database:
Wget-c https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpmrpm-ivh mysql80-community-release-el7-1.noarch.rpmyum-y install yum-utilsyum-config-manager-- disable mysql80-community # shielded 8.0 source package yum-config-manager-- enable mysql57-community # Open version 5.0 source package yum install mysql-community-server-y create data storage folder: mkdir-p / data/zabbix/chown-R mysql:mysql / data
Wait for the download and installation to complete:
Start mysql
Systemctl start mysqld
Boot up
Systemctl enable mysqld
Modify the mysql storage path:
Vi / etc/my.cnf
Datadir=/data/zabbix
Add: skip-name-resolve # disable automatic DNS parsing
Check the root temporary password and log in to mysql to change the password:
Grep 'temporary password' / var/log/mysqld.log
Mysql-uroot-p
ALTER USER 'root'@'localhost' IDENTIFIED BY' password
Create zabbix users and databases in the database:
Create database zabbix character set utf8 collate utf8_bin;grant all privileges on zabbix.* to zabbix@localhost identified by "Zabbix@123"
Import zabbix raw data into the database after exiting mysql
Zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-paired Zabbix upload 123' zabbix
Zabbix service configuration:
Change the configuration parameters: vi / etc/zabbix/zabbix_server.conf
Modified items: DBName, DBUser, DBPassword, StartVMwareCollectors, Timeout, CacheSize
Change the time zone:
Sed-i.ori '19a php_value date.timezone Asia/Shanghai' / etc/httpd/conf.d/zabbix.conf
It can solve the garbled characters in the graphic list:
Yum-y install wqy-microhei-fonts
Mv / usr/share/fonts/dejavu/DejaVuSans.ttf / usr/share/fonts/dejavu/DejaVuSans.ttf.bak
Cp-f / usr/share/fonts/wqy-microhei/wqy-microhei.ttc / usr/share/fonts/dejavu/DejaVuSans.ttf
Set self-boot:
Systemctl enable zabbix-server httpd
Start zabbix:
Systemctl start zabbix-server httpd
Enter the zabbix-web http:// server ip/zabbix to detect OK
Set server information: Port 0 is the default port 3306
The initial account password is Admin zabbix
After logging in, you can set Chinese in the user settings:
LDAP authentication configuration: first create an account that matches the domain user: (note that permissions are given to Super Admin permissions)
Configure LDAP:
Now that the basic environment for ZABBIX is set up, let's create auto-discovery rules: create discovery rules in the configuration; auto-discovery menu:
Scan the network segment 172.16.57.0 to check the address ping in the segment and check whether the OID information of the device SNMP has this field: SNMPv2-MIB::sysName.0.
* SNMP community enter the community name of SNMP
Check OID: SNMPv2-MIB::sysName.0
Finish adding the discovery rules, and then create an automatic discovery action to define the actions to be performed after discovery:
Create actions in the configuration actions menu: add appropriate conditions and actions
After completing the action discovery configuration, the host named by the device name is automatically added after a period of time.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.