4, Zabbix Agent Auto-Registration

Source: Internet
Author: User

Zabbix server can add the host through Autodiscover ( presumably the Zabbix server to scan a network segment, add the online host to the host list), and the same agent can actively contact Zabbix server, These agents are added to the host by Zabbix Server. This is a pretty powerful feature for people who need to deploy a particularly large number of servers. All servers are installed in bulk Zabbix agent,server configured well trigger, all servers are configured, very fast.

Agent-side configuration:

Specify the IP address of the Zabbix server

[Email protected]:~# cat/etc/zabbix/zabbix_agentd.conf | Grep-e ^serveractiveserveractive=

Modify hostname

[Email protected]:~# cat/etc/zabbix/zabbix_agentd.conf | Grep-e ^hostnamehostname=

About host Name: If the zabbix_agentd.conf configuration has a definition hostname, then Zabbix will use this hostname name, otherwise the agent's hostname (hostname)

Modify Metadataitem

[Email protected]:~# cat/etc/zabbix/zabbix_agentd.conf | Grep-e ^hostmetadataitemhostmetadataitem=system.uname

zabbix Web-side configuration

Create a action,event source here to select Auto Registration

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/82/B7/wKiom1dfTvCxmIEKAAQR8K19O_8338.png "style=" float: none; "title=" 1.png "alt=" Wkiom1dftvcxmiekaaqr8k19o_8338.png "/>

Configure the Action tab and fill in the name.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/82/B5/wKioL1dfUAKT8UPnAAH6cCT6OZI383.png "style=" float: none; "title=" 2.png "alt=" Wkiol1dfuakt8upnaah6cct6ozi383.png "/>

Configuring the Conditions tab, hostmetadata containing Linux characters will trigger operations actions, what metadata, the next half of the article will be explained.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/B7/wKiom1dfTvKgWeAQAAJ9RsRucwg534.png "style=" float: none; "title=" 3.png "alt=" Wkiom1dftvkgweaqaaj9rsrucwg534.png "/>

Configure the Operations tab,

When an active host initiates a request that satisfies a condition, the server completes three actions:

    • Add the agent to the host list

    • Adding agents to the Linux Servers group

    • Agent Host link templates template OS Linux

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/82/B5/wKioL1dfUASBH_4EAAKh9KCaJ7Y060.png "style=" float: none; "title=" 4.png "alt=" Wkiol1dfuasbh_4eaakh9kcaj7y060.png "/>

View results:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/82/B5/wKioL1dfUWvTEBLpAASRV_nHAUs547.png "title=" 5.png " alt= "Wkiol1dfuwvteblpaasrv_nhaus547.png"/>

Hostmetadataitem and Hostmetadata

function: Used to mark the host, the symbol can be distinguished from the host. For example, we often use it to distinguish between Linux and Windows systems, so that they can set up groups and template, etc.

Hostmetadataitem usage


Its value is from key

Hostmetadata usage

Hostmetadata: LinuxHehehehehehehehexxxxx

His value is directly defined.

by using a variety of metadata we can be used to differentiate each host to meet our various needs.

Original source: http://www.ttlsa.com/zabbix/zabbix-active-agent-auto-registration/

This article is from the "Zengestudy" blog, make sure to keep this source http://zengestudy.blog.51cto.com/1702365/1788992

4, Zabbix Agent Auto-Registration

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.