短信方式通知告警

<p class="shortdesc">本文介绍如何配置通过短信方式发送告警信息。</p> <section class="section prereq" id="byphone__prereq_uxw_xpr_4sb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div> <p class="p">您已创建实例。</p> <p class="p">您已添加资产。</p> </section> <section class="section context" id="byphone__context_jgj_zsg_psb"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div> <p class="p">短信网关由专门的短信转发业务服务商提供。短信网关用户通过网络将短信发送到短信网关,由短信网关负责将短信发送给接收者。系统通过短信网关转发告警短信时,请先向第三方服务商申请短信网关服务。</p> </section> <section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">登录<a class="xref" href="https://www.ocftcloud.com/console/db-audit" target="_blank" rel="external noopener">数据库审计控制台</a>,进入<span class="keyword wintitle">实例列表</span>页面。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击目标实例<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">管理</span>,进入数据库审计控制台。</span> <div class="itemgroup info"> <img class="image" id="byphone__d23e47" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110011-12277d5f94d4.png" width="700"> </div> </li><li class="li step stepexpand"> <span class="ph cmd">在菜单栏选择<span class="ph menucascade"><span class="ph uicontrol">通知外送</span><abbr> > </abbr><span class="ph uicontrol">告警通知</span></span>,进入<span class="keyword wintitle">告警通知</span>页面,选择<span class="keyword wintitle">短信</span>页签。</span> <div class="itemgroup info"> <img class="image" id="byphone__image_zm3_1mg_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110012-124b244d9b43.png" width="700"> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">编辑</span>,根据以下信息编辑短信配置。</span> <div class="itemgroup info"> <img class="image" id="byphone__image_rw5_bsg_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110012-1f2e53919848.png" width="600"> <table class="table" id="byphone__table_f4g_dsg_psb"><caption></caption><colgroup><col style="width:42.19409282700421%"><col style="width:57.80590717299579%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="byphone__table_f4g_dsg_psb__entry__1"> <p class="p">配置项</p> </th> <th class="entry" id="byphone__table_f4g_dsg_psb__entry__2"> <p class="p">说明</p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">发送方式</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">选择短信发送方式,支持Web接口、数据库接口。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">发送方法(Web接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信发送方法,支持Get、Post、JOSN。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">URL(Web接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信服务地址,例如“http://www.sms.com”。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">头信息(Web接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">请求头,如果有多个请求头,键值对使用英文逗号隔开,例如“k=v,k1=v2”。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">Post参数(Web接口Post和JSON方法)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">Post参数:请求Post参数内容。如果使用JSON方式,请填写JSON内容。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">数据库类型(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信通知接口数据库类型。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">数据库名称/SID(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信通知接口数据库名称。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">用户名/密码(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信通知接口数据库的用户名和密码。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">域名或者IP(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信通知接口数据库的IP或域名。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">端口(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">短信通知接口数据库的端口。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">参数顺序(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">参数顺序,支持“先手机号码,后短信内容”和“先短信内容,后手机号码”</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">插入SQL模板(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">使用两个参数(1.手机号码,2.短信内容),用“?”表示,顺序可在“参数顺序”中设置。例如:insert into MSG(count,phonenum,content,prionity) values(1,?,?,1)。注意事项:语句最后不用加分号“;”。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">调用方式(数据库接口)</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">可选择INSERT语句或者存储过程。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">编码方式</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">服务器支持的编码方式,主要为:UTF-8、GBK。</p> <div class="p"> <div class="note note note_note" id="byphone__note_qsv_lsg_psb"><span class="note__title">说明:</span> 以上配置必须与短信服务器端保持一致。</div> </div> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">实时告警模板</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">发送实时告警信息的模板。</p> <div class="p"> <div class="note note note_note" id="byphone__note_xby_msg_psb"><span class="note__title">说明:</span> 用户可以根据实际需求依据<span class="ph uicontrol">填写说明</span>修改默认模板。</div> </div> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">聚合告警模板</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">发送聚合告警信息的模板。</p> <div class="p"> <div class="note note note_note" id="byphone__note_wpc_4sg_psb"><span class="note__title">说明:</span> 用户可以根据实际需求依据<span class="ph uicontrol">填写说明</span>修改默认模板。</div> </div> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">统计告警模板</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">发送统计告警信息的模板。</p> <div class="p"> <div class="note note note_note" id="byphone__note_fbf_4sg_psb"><span class="note__title">说明:</span> 用户可以根据实际需求依据<span class="ph uicontrol">填写说明</span>修改默认模板。</div> </div> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__1 "> <p class="p">系统告警模板</p> </td> <td class="entry" headers="byphone__table_f4g_dsg_psb__entry__2 "> <p class="p">发送系统告警信息的模板。</p> <div class="p"> <div class="note note note_note" id="byphone__note_tg3_4sg_psb"><span class="note__title">说明:</span> 用户可以根据实际需求依据<span class="ph uicontrol">填写说明</span>修改默认模板。</div> </div> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">确定</span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在指定资产上应用短信告警方式。在页面下方<span class="ph uicontrol">告警通知接收配置管理</span>区域单击<span class="ph uicontrol">添加</span>。</span> <div class="itemgroup info"> <img class="image" id="byphone__image_tpw_psg_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110012-18edd87c942f.png" width="700"> </div> </li><li class="li step stepexpand"> <span class="ph cmd">在弹出的对话框中,根据以下信息新增告警通知接收配置。</span> <div class="itemgroup info"> <img class="image" id="byphone__image_xlf_rsg_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110012-19febfa598f0.png" width="500"> <table class="table" id="byphone__table_iql_ssg_psb"><caption></caption><colgroup><col style="width:26.525198938992045%"><col style="width:73.47480106100795%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="byphone__table_iql_ssg_psb__entry__1"> <p class="p">配置项</p> </th> <th class="entry" id="byphone__table_iql_ssg_psb__entry__2"> <p class="p">说明</p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">资产</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 "> <p class="p">当所选资产发生告警,将通过短信方式向指定手机号发送告警信息,可选择多个资产。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">接收者</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 ">接收告警信息的手机号,可设置多个手机号。</td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">告警等级</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 "> <p class="p">触发指定等级的告警才会发送告警信息。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">通知周期</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 ">取<p class="p">值范围为0~86400,单位为秒,0表示发送全部告警。如果设置为0,聚合通知功能将无法开启。同一个规则在通知周期内多次触发告警时只通知第一次触发的告警。</p></td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">聚合通知</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 "> <p class="p">开启聚合通知功能后,系统会在通知周期结束后发送一条聚合告警信息。聚合消息示例如下:在过去*秒,总计触发*条告警。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">告警统计</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 "> <p class="p">开启后,系统将统计总共发生了多少次告警。</p> </td> </tr> <tr class="row"> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__1 "> <p class="p">发送时间</p> </td> <td class="entry" headers="byphone__table_iql_ssg_psb__entry__2 "> <p class="p">每日在设定的时间点发送前一天的告警统计信息。</p> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">保存</span>。</span> </li></ol></section>
以上内容是否解决了您的问题?
请补全提交信息!
联系我们

电话咨询

400-151-8800

邮件咨询

fincloud@ocft.com

在线客服

工单支持

解决云产品相关技术问题