This is a package for sending messages to enterprise WeChat applications in zabbix
Project description
This is a package for sending messages to enterprise WeChat applications in zabbix. You can use Github
View at:
https://pypi.org/project/ZabbixQywechat/1.1.1/
Python 2
pip install ZabbixQywechat
Python 3
pip3 install ZabbixQywechat
Demo test
vim test.py
from ZabbixQywechat import Qywechat
import sys
Agentid="1000002"
Corpid="1111"
Corpsecret="2222"
PATH="/tmp/test.json"
if __name__ == '__main__':
Touser=sys.argv[1]
Subject=str(sys.argv[2])
Content=str(sys.argv[3])
Result=Qywechat(Agentid,Corpid,Corpsecret,PATH)
Result.SendMSGtoWechat(Touser,Subject,Content)
python test.py WechatAccount title content
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ZabbixQywechat-1.1.1.tar.gz
(2.3 kB
view hashes)
Built Distributions
Close
Hashes for ZabbixQywechat-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 722ec797ba40f3cdcf903e8f91d088c5c56b3c9bae15818dcb449af146d23aa2 |
|
MD5 | 057d9c0d9d46970e1c84a865c65c7ece |
|
BLAKE2b-256 | a87051feadd4a36bf62c06d9a66445e10e2e6b8f1a254b198ea9aec2707ac13c |
Close
Hashes for ZabbixQywechat-1.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66071a344671679e1f01ba5797dc84fbde822063d4349b86215ff46be131fecc |
|
MD5 | e0b7d19639b69224fc440539307b8bb0 |
|
BLAKE2b-256 | ea9db6c078de26c997890d732ae0292e6c3baea3245bab5e76b9f0bf6bdfa59f |