1、新建一个/home/warnSound.sh文件,此处目录和文件名称是为测试不便,本人能够依据理论场景自定义,内容如下

#!/bin/bashecho -e "/a"

2、cli 测试

记得先给warnSound.sh增加可执行权限

chmod +x warnSound.sh

3、测试实现,批改/server/config/application.yml

#告警脚本文件残缺门路,留神是残缺的门路,能够为空,参考:/server/template/sendMsg.shwarnScript: /home/warnSound.sh

 留神告警脚本文件须要填写残缺的门路

4、好了,重启server,这样就能够在收到告警声音了