客户将NQA测试组中指定联动项关联的Track项后,发现track关联的探测失败时设备无法主动通过SNMP TRAP向网管发送告警;
#
nqa entry admin ping
type icmp-echo
destination ip 9.8.54.89
frequency 1000
history-record enable
reaction 3 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
reaction trap probe-failure 5
source ip 9.8.54.90
#
nqa schedule admin ping start-time now lifetime forever
#
track 1 nqa entry admin ping reaction 3
#
1、reaction trap probe-failure consecutive-probe-failures的含义是:每次探测结束后,计算本次NQA测试中探测连续失败的次数,如果连续失败次数大于/等于consecutive-probe-failures,则向网管服务器发送探测失败的Trap消息。一次测试中,可能发送多次Trap消息。consecutive-probe-failures为一次测试中连续探测失败的次数,取值范围为1~15。现场NQA配置的测试按照缺省方式只进行一次探测,无法达到现场配置的探测连续5次失败发送trap的条件,故无法实现相应需求。
现场配置如下:
nqa entry admin ping
type icmp-echo
destination ip 9.8.54.89
frequency 1000
history-record enable
reaction 3 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
reaction trap probe-failure 5
source ip 9.8.54.90
方案1:配置一次测试中的探测次数大于等于5:命令为 probe count 5;该配置每次测试中只要探测都失败就会发送trap,如果条件不满足,则不发送trap:
配置如下:
nqa entry admin ping
type icmp-echo
destination ip 9.8.54.89
frequency 1000
history-record enable
reaction 3 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
reaction trap probe-failure 5
probe count 5
source ip 9.8.54.90
方案2:删除reaction trap 命令,通过reaction checked-element 来发送trap,具体配置为:reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trap-only ;该配置当发现连续5次失败后发送trap(不关心测试,只要连续失败5次就OK),如果条件不满足(出现测试成功),也会发送trap消息(即成功、失败时各发送一条trap消息):
配置如下:
nqa entry admin ping
type icmp-echo
destination ip 9.8.54.89
frequency 1000
history-record enable
reaction 3 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trap-only
source ip 9.8.54.90
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作