Zabbix automatic discovery of network nodes

Source: Internet
Author: User
Tags snmp

Zabbix automatically discovers the network, greatly reduces the manual operation, can monitor the N host node in minute clock.

1. Create an Autodiscover rule, as shown below.

Configuration >>discovery>>create rule, new network discovery rules

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/83/D7/wKioL1d97M6hmgc2AABckkzv760706.jpg-wh_500x0-wm_3 -wmp_4-s_1377935559.jpg "title=" 1.jpg "alt=" Wkiol1d97m6hmgc2aabckkzv760706.jpg-wh_50 "/>


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/D7/wKioL1d97SSgis5sAACRr3yih1U965.jpg-wh_500x0-wm_3 -wmp_4-s_3827572269.jpg "title=" 2.jpg "alt=" Wkiol1d97ssgis5saacrr3yih1u965.jpg-wh_50 "/>

The above rule means that every 60 seconds the IP range is 192.168.75.136-200 address, with the IP address as the unique identity.

Rule Properties

Property Describe
Name Rule name, unique
Discovery by proxy Who executes the current discovery rule:
No Proxy-zabbix server
<proxy name>-The specified proxy
IP Range The IP range in the discovery rule, in the following format
Single ip:192.168.75.136
One IP segment: 192.168.75.136-200
A subnet: 192.168.75.0/24
The following subnet masks are supported:
IPV4:/16-/30
ipv6:/112-/128
IP list: 192.168.1.1-255,192.168.2.1-100,192.168.2.200,192.168.4.0/24

Remark: 1. IP in IP list cannot be duplicated by 2. The different discovery rules don't contain

The same IP, otherwise unexpected problems may occur

Delay (in SEC)

After the rule is executed, the next time it takes to execute.

Checks Supported Checks:ssh, LDAP, SMTP, FTP, HTTP, HTTPS, POP, NNTP, IMAP, TCP, Telnet, Zabbix agent, SNMPV1 agent, SNMPv2 agent, SNMP V3 agent, ICMP Ping.
The Port property is as follows:
Single Port: 22
Port segment: 22-45
Port list: 22-45,55,60-70
Device Uniqueness Criteria Device Unique identification:
IP address-Use IP addresses as device uniqueness identifiers
Type of Discovery Check-use a check of SNMP or Zabbix agent as a unique identifier
Enabled Whether the current rule is enabled


2, create action, with the rules need to trigger to do something. Examples such as the following

Configuration>>action>>event Source (optional Discover) >>create action


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/83/D7/wKioL1d97smznG7bAAB5hFks0tY126.jpg-wh_500x0-wm_3 -wmp_4-s_3903203223.jpg "title=" 3.jpg "alt=" Wkiol1d97smzng7baab5hfks0ty126.jpg-wh_50 "/>


The name of the "Add Web Host" action. Other default or want to modify can also be some of the automatic discovery rules information.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/D8/wKiom1d971KxkkvmAACUS5oKyP4951.jpg-wh_500x0-wm_3 -wmp_4-s_1616110459.jpg "style=" Float:none; "title=" 4.jpg "alt=" Wkiom1d971kxkkvmaacus5okyp4951.jpg-wh_50 "/>



Condition conditions. Type I choose the amount here is and/or, and in the shell and with, or or is a meaning.

Match criteria: The characters in the target host system.uname that contain Linux. The state is up, the target host range is 192.168.75.136-200,

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/83/D7/wKioL1d971OhTDHSAACYcGu9YPk212.jpg-wh_500x0-wm_3 -wmp_4-s_1001876245.jpg "style=" Float:none; "title=" 5.jpg "alt=" Wkiol1d971ohtdhsaacycgu9ypk212.jpg-wh_50 "/>


After matching will automatically add the host and add host to the group here Select the Linux Servers group, and then choose to connect to that template.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/D7/wKioL1d971OjIP6BAAB4ok_NcAo943.jpg-wh_500x0-wm_3 -wmp_4-s_1625504902.jpg "style=" Float:none; "title=" 6.jpg "alt=" Wkiol1d971ojip6baab4ok_ncao943.jpg-wh_50 "/>

Note: The above automatic discovery host configuration is complete.


3, the agent is installed after the specified Zabbix-server IP address, etc., the service starts to complete, the host node is more, you can choose Open source tools such as salt, ansible, puppet, etc. or write a script to install the remote host agent.


4, Zabbix-server interface to see the automatic discovery of the host situation as follows

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/D8/wKiom1d98iTxcOiAAACbdmdf8H8144.jpg-wh_500x0-wm_3 -wmp_4-s_1766804191.jpg "title=" 7.jpg "alt=" Wkiom1d98itxcoiaaacbdmdf8h8144.jpg-wh_50 "/>

You can see that the host has been discovered


View Auto-issued host monitoring status information

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/83/D7/wKioL1d98pmRmmSXAAE1mMbPV2I451.jpg-wh_500x0-wm_3 -wmp_4-s_1548196487.jpg "title=" 8.jpg "alt=" Wkiol1d98pmrmmsxaae1mmbpv2i451.jpg-wh_50 "/>


In fact, open the Zabbix interface at the bottom to see the Autodiscover host information

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/D8/wKiom1d98uzj06HaAADCM5sRvKs371.jpg-wh_500x0-wm_3 -wmp_4-s_1333327111.jpg "title=" 9.jpg "alt=" Wkiom1d98uzj06haaadcm5srvks371.jpg-wh_50 "/>


5, if I bar a node agent hangs, the Zabbixweb interface will appear at the bottom of the up and down as follows

# systemctl Stop zabbix-agent.service# ps-ef|grep zabbixroot 2877 2438 0 20:18 pts/0 00:00:00 grep--color=au To Zabbix

View Zabbix Interface situation

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/83/D8/wKioL1d99L_gvrrwAAAiYMnguE4282.jpg-wh_500x0-wm_3 -wmp_4-s_110254861.jpg "title=" 10.jpg "alt=" Wkiol1d99l_gvrrwaaaiymngue4282.jpg-wh_50 "/>


The above is the automatic discovery of the host and connect to the specified template, in fact, you can also configure the auto-discovery host no longer state or service status down according to the point of time, and so on, automatic deletion or offline and so on. Well. Let's do this.

This article is from the "Village Boys" blog, please make sure to keep this source http://noodle.blog.51cto.com/2925423/1812243

Zabbix automatic discovery of network nodes

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.