With the monitoring host increasing, sometimes need to add a number of machines, especially the children's shoes just with Zabbix need to add all the company's servers to Zabbix, if using traditional methods to add devices, groups, projects, images ... the result should be the result of vomiting.
In view of this problem we can make good use of a Discovery (Discovery) module of the Zabbix great God, which enables automatic discovery of hosts, automatic addition of hosts to host groups, automatic loading of templates, automatic creation of projects (item), and automatic creation of images. The efficiency is very high at the same time also liberated your hands, below we to see how this module uses.
First, Zabbix create discovery rule
Create a Discovery Rule
Configuration----Discovery----Create Discovery rule Copy Code
Configure basic information
Configure checks
After adding checks, click the bottom add to add save
The OK rule has been created, and the following starts to let him automatically join the group to create the graph automatically
Second, the host automatically join the main group and associated templates
Above we learned how to automatically discover the host, then we discover what to do after the host. Add hosts to the host group, and associate the appropriate templates. This whole process is perfect, so how to do it. We have found that the host next to the host to do the operation so we need an action (action) to perform some of the column operations, let's look at the specific operation.
2.1. Create action (action) for Discovery (discovery)
Three conditions were added here are "IP address range", "Service type" and "Discovery status".
2.2. Create an action
2.2.1, "Add host" adds hosts
2.2.2, add to host group adds hosts to host groups, select which host group to add
2.2.3, "link to template" Links to templates, select the appropriate template
Here I define the discovery host to "Add Host" and "Add to host Group (groups)", "link to the appropriate template (link to template)"
2.2.4, click on "Add" to add the completion of the following results
Ok to discover hosts, add hosts and add hosts to host group link templates all finished
Look at the effect.
Monitoring----Discovery----Select a custom discovery rule to copy code
Here is the effect of a discovery rule I define as shown in the figure is the host of the discovery
Viewing hosts and host-related images
Configuration----Hosts Copy Code
Article Source: http://www.fengyuba.com
Article Author: maple
NOTE: Reprint please indicate the source ...
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.