In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. First configure the discovery rules on the server side
Configuration-automatic discovery
two。 Configure the agent side
Rpm-Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-2.el7.noarch.rpm
Yum install zabbix-agent-y
# # configure the installation source and install the yum server
Vim / etc/zabbix/zabbix_agentd.conf
Serve=192.168.0.13 # passive mode server to pull data
ServerActive=192.168.0.13 # active mode agent actively uploads data
When it is configured, go to the monitoring-- automatic discovery to have a look.
As you can see from here, the device has been discovered.
3. Create a template that is automatically linked by the host that the action will automatically discover
I created three rules that must be satisfied at the same time to trigger the action in the action.
A host IP address field must be 192.168.0.10 to 192.168.10.20
B the added type must be the one that transfers data to the agent client
C just now I added system.uname this key to obtain OS information, which must contain Linux before it can be triggered, which means that the operation in this action is only for the linux host.
When the first three conditions are met, perform the following four operations
First send the host online information to the Admin user (send Email if the medium is defined), then add the host, give the host specification group, and connect the template
Information content
Discovery: {DISCOVERY.DEVICE.STATUS} {DISCOVERY.DEVICE.IPADDRESS} Discovery Rule: {DISCOVERY.RULE.NAME} device IP: {DISCOVERY.DEVICE.IPADDRESS} device DNS: {DISCOVERY.DEVICE.DNS} device status: {DISCOVERY.DEVICE.STATUS} device uptime: {DISCOVERY.DEVICE.UPTIME} device Service name: {DISCOVERY.SERVICE.NAME} device Service Port: {DISCOVERY.SERVICE.PORT} device Service status: {DISCOVERY.SERVICE .status} device service uptime: {DISCOVERY.SERVICE.UPTIME}
4. View
There is a failure to check here in the report-action log. It is that I do not define the alarm medium to send Email failure, which has nothing to do with the launch. The launch has been successful.
Here you can see that the 16th ip is already in the host configuration.
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.