python2.7.5监控php慢日志报警到钉钉机器人
1、在钉钉创建自定义机器人webhook
点击“复制”按钮,即可获得这个机器人对应的Webhook地址,其格式如下:
https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxx
2、安装python依赖包
pip install pyinotify
pip install requests
3、准备 py_inotify.py,监控ph...
原创
2019-05-23 18:03:45 ·
638 阅读 ·
2 评论