Automatic Discovery of zabbix

Source: Internet
Author: User

1. Open configure -- discovery -- create discovery rule:


650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/22/wKiom1PQ5nrgNDtoAACuyTdyUaE092.jpg "Title =" qq 40724184117.jpg "alt =" wkiom1pq5nrgndtoaacuytdyuae092.jpg "/>


You need to add the name, IP address segment (this address segment should overwrite the minimum IP address segment of all your IP addresses), checks. Among them, checks is the most important. There are three items in total. Only the key is entered. Here, the key system. uname is used. Click Add and save. This means that the zabbix server side scans the zabbix client in this network segment (the client port is 10050 by default) and obtains the System of the client after scanning. uname value. The returned value is similar to the uname-a command in Linux. The value is in the following format:

[[Email protected] ~] #/Usr/local/zabbix/bin/zabbix_get-s192.168.8.29-ksystem. uname
Linux *. *. com 2.6.32-431. el6.x86 _ 64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64


This is mainly used to automatically allocate the host to the corresponding group (such as the Linux Group or windowns group) after discovering the host, and apply the corresponding monitoring template.

Of course, this key value does not necessarily use system. uname, you can also use other keys. First, the zabbix client supports this key, which can be used to distinguish different types of hosts and facilitate grouping and application of monitoring templates.


2. Open the zabbix System Configuration --- action -- event source-create action:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/41/21/wKioL1PQ58Hgl9y9AABY5TCB3Ck128.jpg "style =" float: none; "Title =" qq 40724185040.jpg "alt =" wkiol1pq58hgl9y9aaby5tcb3ck128.jpg "/>

Discovery rules

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/41/21/wKioL1PQ58Hw6gQ1AADa2Dph23k200.jpg "style =" float: none; "Title =" qq 40724185049.jpg "alt =" wkiol1pq58hw6gq1aada2dph23k200.jpg "/>

Associated Template

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/22/wKiom1PQ5qeyiTpdAABr789OKbI582.jpg "style =" float: none; "Title =" qq 40724185055.jpg "alt =" wkiom1pq5qeyitpdaabr789okbi582.jpg "/>

These items mean that when the zabbix client is found automatically and the key contains Linux characters, it is added to the linux_servers group and the linux_server template is applied. Wait for a while to view the automatically discovered results. The result can be found at the bottom of the zabbix homepage, or in the zabbix status statistics-automatic discovery, you can see how much is found and how much is monitored.

 

So far, zabbix's monitoring settings have been described.

The discovered host will appear in the discovery in monitoring.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/21/wKioL1PQ76rSTl1FAAFZDh3Ws8w849.jpg "Title =" 2014-07-24_193045.png "alt =" wkiol1pq76rstl1faafzdh3ws8w849.jpg "/>

Check whether the hostname is consistent with that in agentd. conf.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/41/22/wKiom1PQ8jngugIyAADvqTVIAK0451.jpg "Title =" qq 407241920.1.jpg "alt =" wkiom1pq8jngugiyaadvqtviak0451.jpg "/>






This article is from the "Jeffery blog" blog, please be sure to keep this source http://oceanszf.blog.51cto.com/6268931/1529830

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.