这两天还是由于onealert取消了电话通知,所以我们需要找电话报警的替代方案,上午的时候已经基本锁定了nexmo作为tts api厂商。选定了api,就要配置到openfalcon里面去了, 但是call url是基于模板的,如何批量进行修改呢? 巴拉巴拉,在数据库 falcon_portal里面找到了,几条命令批量修改之。
use falcon_portal;
select * from action;
http://api.110monitor.com/alert/api/event/falcon/6aea506f-b7c1-6ae0-546e-08970e1432cb
update action set url="http://123/gaojing.php" where url="http://api.110monitor.com/alert/api/event/falcon/6aea506f-b7c1-6ae0-546e-123";
select * from action where url="http://api.110monitor.com/alert/api/event/falcon/6aea506f-b7c1-6ae0-546e-xxx";
END