• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

04-系统管理配置指导

目录

07-告警功能配置指导

本章节下载 07-告警功能配置指导  (163.88 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Security/00-Public/Configure/Operation_Manual/ACG1000_CG(R6612_E6453)/04/202104/1406855_30005_0.htm

07-告警功能配置指导


1 告警功能

1.1  告警功能简介

当设备发生故障或某些原因导致系统发生不正常的工作或某些功能影响用户体验的情况下,系统可以根据不同类型的故障,并对故障进行分析并通过一定的告警方式通知用户或者网络管理员,这就是实现告警功能的目的。为提高系统的实时监控能力,增加告警功能模块。该功能模块可以根据不同事件类型进行分析,分析结果以不同的告警方式通知用户或管理员。

系统对以下产生的事件进行分析:

·     设备硬件事件,如CPU利用率过高、内存利用率过高等

·     用户体验事件,如IPSEC-VPN隧道断开等

·     系统规格事件,如会话数目达到规格,接口流量超过阈值等

1.2  告警事件配置

用户可根据需求选择告警事件,并且设置告警阈值及其持续时长。

1.2.1  配置事件告警

表1-1所示步骤配置事件告警。

表1-1 配置事件告警

操作

命令

说明

进入系统视图

system-view

-

启用事件告警

alarm-email enable

必选

启用cpu告警并且设置cpu告警阈值持续时长

alarm-email cpu threshold number duration time

可选

启用内存告警并且设置内存告警阈值持续时长

alarm-email memory threshold number duration time

可选

启用会话告警并且设置会话告警阈值持续时长

alarm-email session threshold number duration time

可选

启用流量告警并且设置流量告警阈值持续时长

alarm-email traffic threshold number duration time

可选

启用IPSec告警

alarm-email ipsec-vpn disconnect

可选

 

1.3  配置邮箱服务器

配置邮箱服务器,告警日志将直接上传至邮箱。

1.3.1  配置邮箱服务器

表1-2所示配置邮箱服务器。

表1-2 配置应用控制策略

操作

命令

说明

进入系统视图

system-view

-

设置邮箱服务器及端口

alarm-email server Email server name port number

必选

发送地址及用户密码

alarm-email user Email username passwd Email password

必选

收件地址

alarm-email reveiver Email receive name

必选

收件标题

alarm-email title Email title

必选

间隔时间

alarm-email send-interval Interval of send mail

必选

 

1.4  告警事件典型配置举例

1. 组网需求

设备作为网关,内网用户通过设备访问外网资源。

图1-1 配置告警事件组网图

 

2. 配置思路

·     内网PC通过ge1口进入设备,从ge0口接入外网。

·     在设备上配置告警事件,并把告警日志发送到user@qq.com。

3. 配置步骤

(1)     配置告警事件

host# system-view

host(config)# application-group test_app_group

host(config)# alarm-email enable

host(config)# alarm-email cpu threshold 50 duration 1

host(config)# alarm-email memory threshold 50 duration 1

host(config)# alarm-email session threshold 50 duration 1

host(config)# alarm-email traffic threshold 100 duration 1

host(config)# alarm-email ipsec-vpn disconnect

host(config)# exit

(2)     配置邮箱服务器

host(config)# alarm-email server smtp.163.com port 25

host(config)# alarm-email user senderuser1@163.com passwd 123123123

host(config)# alarm-email reveiver user@qq.com

host(config)# alarm-email title 告警

host(config)# alarm-email send-interval 1

4. 验证配置

通过执行display running-config alarm-email命令来验证配置

host# display running-config policy alarm-email

alarm-email enable

alarm-email ipsec-vpn disconnect

alarm-email cpu threshold 100 duration 600

alarm-email memory threshold 100 duration 600

alarm-email session threshold 100 duration 600

alarm-email traffic threshold 100 duration 600

!

alarm-email server smtp.163.com port 25

alarm-email user senderuser1@163.com secret cEAxKiYHVvF1tXtoLVYsBhknNwrYvw3RYgP8CZ1ALCrPfB609rrwEJbo6LYQpp3

alarm-email reveiver user@qq.com

alarm-email title 告警

alarm-email send-interval 1

!

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们