zabbix 探测外网IP

2019-12-12  本文已影响0人  xyz098

关键: 通过zabbix简单检测实现

配置

  1. 创建主机

    Configuration配置 —> Hosts主机 —> Create host —> Agent Interface的IP地址为外网IP

  2. 创建监控项

    点击主机 —> Items监控项 —> Type类型(Simple check简单检测) —> Select选择(icmpping)

  3. 创建触发器

    点击主机 —> Triggers触发器 —> Expression表达式({11.11.11.11:icmpping.avg(1h)}=0

  4. 创建媒介

    Adminstration管理员—> Media types媒介类型(Type为Script、邮件等)

    # server端配置脚本存放
    # grep alertscript zabbix_server.conf  | grep -v ^#
    AlertScriptsPath=/usr/lib/zabbix/alertscripts
    
  5. 创建用户

    Adminstration —> User (主机组) —> Media告警媒介 —> Perissions (权限)

  6. 创建动作

    Configuration配置 —> Actions动作 —> Conditions条件自行选择 —> Operations操作(等待1小时发送告警:Steps 1 -2;Step duration 30m) —> Send to User —> Send only to (选择Media告警媒介)

批量操作

上一篇 下一篇

猜你喜欢

热点阅读