获取信息板警报通知

可以使用 dashboard alarm show 命令查看信息板警报。也可以订阅特定的事件管理系统 (EMS) 消息以接收信息板警报通知。

开始之前

必须事先使用 dashboard alarm thresholds modify 命令指定 EMS 在生成警报后发送消息。

关于此任务

当阈值大于或等于临界阈值(上升)以及小于警告值(下降)时,EMS 会生成信息板警报消息。对于要获取警报通知的对象类型,您需要路由其 EMS 消息:

aggregate-used
以下 EMS 消息与此对象类型相关:
  • mgmtgwd.aggregate.used.rising
  • mgmtgwd.aggregate.used.falling
cpu-busy
以下 EMS 消息与此对象类型相关:
  • mgmtgwd.cpu.busy.rising
  • mgmtgwd.cpu.busy.falling
op-latency
以下 EMS 消息与此对象类型相关:
  • mgmtgwd.op.latency.rising
  • mgmtgwd.op.latency.falling
port-problems
以下 EMS 消息与此对象类型相关:
  • mgmtgwd.port.problems.rising
  • mgmtgwd.port.problems.falling
port-util
以下 EMS 消息与此对象类型相关:
  • mgmtgwd.port.util.rising
  • mgmtgwd.port.util.falling

步骤

  1. 使用 event destination create 命令定义 EMS 消息要发送到的目标。
    示例
    cluster1::> event destination create -name dashboard_alarms -mail admin@example.com
  2. 使用 event route add-destinations 命令将 EMS 消息路由到目标。
    示例
    以下示例指定聚合利用率消息发送至名为 dashboard_alarms 的目标。
    cluster1::> event route add-destinations -messagename mgmtgwd.aggregate.used* -destinations dashboard_alarms
    示例
    以下示例指定所有信息板警报消息都发送至名为 dashboard_alarms 的目标。
    cluster1::> event route add-destinations -messagename mgmtgwd.aggregate.used*,mgmtgwd.port.problems*,mgmtgwd.op.latency*,
    mgmtgwd.port.util*,mgmtgwd.cpu.busy* -destinations dashboard_alarms