# webinter **Repository Path**: shijiange/webinter ## Basic Information - **Project Name**: webinter - **Description**: Zabbix Webhook + Go Gin实现告警机器人、邮件告警、企业微信告警、钉钉告警 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-11-30 - **Last Updated**: 2025-08-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webinter #### 介绍 Zabbix Webhook + Go Gin实现告警机器人、邮件告警、企业微信告警、钉钉告警 #### 软件架构 Go Gin接口实现 #### 安装教程 ``` go mod init xxx go build ./ ``` #### 使用说明 Zabbix7 Webhook配置 ``` var params = JSON.parse(value), req = new HttpRequest(), fields = {}, resp; fields.To = params.To; fields.Subject = params.Subject; fields.Message = params.Message; resp = req.post(params.URL,JSON.stringify({"fields": fields})); Zabbix.Log(4, JSON.stringify({"fields": fields})); return "success" ``` #### 配置demo config.yaml ``` port: 9090 token: xxx machineConf: enabled: false url: xxx emailConf: enabled: false smtpaddr: smtp.126.com from: sjgops@126.com password: xxx dingConf: enabled: false corpid: xxx corpsecret: xxx agentid: xxx wxConf: enabled: false corpid: xxx corpsecret: xxx agentid: xxx wxVerifyConf: token: xxx encodingAeskey: yyy receiverId: zzz ``` #### 额外说明及效果图 wxVerifyConf可以实现微信的ip验证,验证后才能配置企业微信白名单 ![效果图](zbxinter/image.png)