Linux:Day48(下) zabbix使用进阶

zabbix提供网络发现功能:network discovery

  HTTP、ICMP、SSH、LDAP、TCP、SNMP、Telnet、Zabbix_agent扫描指定网络内的主机;

  一旦主机被发现,如果对其进行操作,将由action来决定;

  LLD:Low Level Ddiscovery

  此二者的功能:

    自动添加或移除主机、将主机链接至模板或删除链接、添加监控项、将主机添加至分组、定义触发器、执行远程脚本;

  网络发现有两个步骤:

    discovery --> action

    发现中的事件:

      Service Discovered,Service Lost,Service Up,Service Down

      Host Discovered,Host List,Host Up,Host Down

    actions:

      Sending notifications

      Adding/removing hosts

      Enabling/disabling hosts

      Removing hosts from a group

      Linking hosts to/unlinking from a template

      Executing remote scripts

auto_registration:

  Active Agent Auto-Registration

  HostMetadata

  支持使用agent(active)类型的item key;

  配置过程:

    (1) 定义agent端:

      ServerActive=

      Server=

      Hostname=

      ListenIP=设置为本机某特定IP;

      ListenPort=

      HostMetadata=

      HostMetadataItem=item key,一般使用system.uname

    (2) 配置action,要求其事件来源为auto_registration

LLD:Low Level Discovery

  自动发现特定变量的名称;

    #IFNAME,#FSNAME

  添加针对变量的Items;

  返回值为JSON

猜你喜欢

转载自www.cnblogs.com/sq5288/p/11589394.html
今日推荐