2022-11-23
1 分钟阅读
1#!/usr/bin/env python 2#coding:utf-8 3 4#zabbix钉钉报警 5import requests 6import json 7import sys 8import os 9import datetime 10 11#这里是自己创建的机器人的webhook 12webhook="https://oapi.dingtalk.com/robot/send?access_token=xxxxxx" 13 14user=sys.argv[1] 15text=sys.argv[3] 16data={ 17 "msgtype": "text", 18 …