In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Automatic discovery and automatic registration:
1. Demo environment:
IP
Operating system
Hostnam
Role
192.168.0.120
CentOS 7.7 x86_64
Zabbix-server
Zabbix Database 、 Zabbix Server 、 Zabbix Web 、 Zabbix Agent
192.168.0.121
CentOS 7.7 x86_64
Node-121
Zabbix Agent
192.168.0.122
CentOS 7.7 x86_64
Node-122
Zabbix Agent
2. All CentOS nodes perform the following operations:
(1) configure hostname
(2) configure hosts file:
# vim / etc/hosts
192.168.0.120 zabbix-server
192.168.0.121 node-121
192.168.0.122 node-122
(3) Zabbix Agent is running normally.
3. Restore the configuration before Zabbix Proxy and delete all nodes except zabbix-server in Zabbix Web:
4. Configure automatic discovery:
(1) define discovery rules:
Configuration-- > Discovery-- > Local network-- > Update
Note: the default value of "Update interval" is 1h, it is adjusted to 30s during testing, and multiple IP can be separated by commas.
(2) View the found host:
Monitoring-- > Discovery
(3) define actions:
Configuration-- > Actions-- > Discovery-- > Auto discovery. Linux servers. -> Update
(4) View the added hosts:
Configuration-- > Hosts
(5) View the latest monitoring data of node-121 nodes:
(6) View the latest monitoring data of node-122 nodes:
5. Configure automatic registration:
(1) restore the configuration before automatic discovery, and delete all nodes in the Zabbix Web except zabbix-server:
(2) the node-121 and node-122 nodes modify the zabbix_agentd.conf configuration file respectively:
# vim / etc/zabbix/zabbix_agentd.conf
Node-121 node:
Before modification
After modification
# HostMetadata=
HostMetadata=node
Node-122 node:
Before modification
After modification
# HostMetadata=
HostMetadata=node
(3) node-121 and node-122 nodes restart Zabbix Agent:# systemctl restart zabbix-agent respectively
(4) define actions:
Configuration-- > Actions-- > Auto registration-- > Create action-- > Add
(5) View the added hosts:
Configuration-- > Hosts
(6) View the latest monitoring data of node-121 nodes:
(7) View the latest monitoring data of node-122 nodes:
Note: auto-registration is recommended, configuration is simpler than automatic discovery, and the pressure on Zabbix Server is low.
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.