Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Ios Chat | 1,073 | 7 hours ago | 16 | other | Objective-C | |||||
开源的即时通讯(野火IM)系统 | ||||||||||
Wechatpc | 335 | a year ago | 1 | other | C++ | |||||
PC微信hook源码,PC微信注入,逆向编程,可以制作微信机器人玩玩,仅供学习,请不要用于商业、违法途径,本人不对此源码造成的违法负责! | ||||||||||
Skadi | 149 | 4 months ago | 52 | February 01, 2023 | mit | Go | ||||
Easily run something on your server by sending message to IM. slack, teams, wechat, etc... | ||||||||||
Wx Chat | 59 | 20 days ago | 1 | other | JavaScript | |||||
野火IM微信小程序版 | ||||||||||
Django Wechat Pay | 56 | 2 years ago | 1 | Python | ||||||
通过 Django, Django Rest Framework, wechatpy 实现微信小程序端的支付功能 | ||||||||||
Zabbix Wechat | 54 | 4 years ago | 1 | apache-2.0 | Python | |||||
An auto-notification alarm system | ||||||||||
Server | 43 | 11 | 4 years ago | 3 | May 16, 2019 | 4 | TSQL | |||
Enterprise Open Source IM Solution | ||||||||||
Keycloak Services Social Weixin | 27 | 5 years ago | 1 | Java | ||||||
keycloak social weixin | ||||||||||
Weixin_server | 26 | 7 years ago | 1 | JavaScript | ||||||
weixin server powered by Nodejs | ||||||||||
Shop Server | 19 | 3 years ago | 2 | mit | PLpgSQL | |||||
管理系统服务端 |
作者:superbigsea 邮箱:[email protected] qq群238705984
做出来的效果 一个优雅的报警处理系统范例:
插播广告 lz现在在腾讯工作 有需要内推腾讯岗位,欢迎加群私聊。
The purpose of this project is to build up an auto-notification alarm system which is compatible with most monitoring system,which includes the functions such as reminder alarm, alarm compression, alarm classification, alarm summary report etc... Readers need to have some experiences in linux, python, zabbix. Requires python3 support.
The entire installation configuration is rather complex,needing plenty of components.
yum install python34 python34-pip python34-devel gcc
pip3 install pycrypto sqlalchemy
ssh-keygen -b 4096 -t rsa -f /etc/zabbix/pub
mv /etc/zabbix/pub /etc/zabbix/pri.key
mv /etc/zabbix/pub.pub /etc/zabbix/pub.key
zabbix_server_charturl = "http://127.0.0.1/zabbix/chart.php" ##Zabbix server chart api
ttserver = "http://www.example.com:1978" ##The url for ttserver over internet.
server_url = "http://www.example.com/getvalue" ##The url for main process over internet.
curl -c /tmp/zabbix_cookie -d "name=Admin&password=zabbix&autologin=1&enter=Sign+in" http://127.0.0.1/zabbix/index.php
Change the username and passwd and zabbix url to your own setting.
{TRIGGER.NAME}@@@{TRIGGER.DESCRIPTION}@@@{HOSTNAME}@@@{TRIGGER.SEVERITY}@@@{ITEM.ID}@@@{TRIGGER.STATUS}@@@{HOST.CONN}@@@{TRIGGER.HOSTGROUP.NAME}@@@{EVENT.ID}@@@
yum install mariadb-server -y
systemctl enable mariadb
systemctl start mariadb
CREATE DATABASE `alarm` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; #
grant all privileges on *.* to [email protected] identified by 'alarm';
yum install memcached
systemctl enable memcached
systemctl start memcached
yum install bzip2-devel gcc zlib-devel -y
wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz
wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gz
tar zxvf tokyocabinet-1.4.48.tar.gz
cd tokyocabinet-1.4.48
./configure
make && make install
tar zxvf tokyotyrant-1.1.41.tar.gz
cd tokyotyrant-1.1.41
./configure
make && make install
mkdir /ttdata/
./ttserver -port 1978 -thnum 8 -tout 30 -dmn -pid /ttdata/tt.pid -kl -log /ttdata/tt.log -le -ulog /ttdata -ulim 128m -sid 1 -rts /ttdata/tt.rts /ttdata/ttdb.tch
yum install python34 python34-pip python34-devel
pip3 install django pymysql django_crontab redis pycrypto python-memcached sqlalchemy
[wechat]
corp_id=******************
corp_secret=*******************
toparty=***********
agentid=*************
url=http://**************
language=en_US
[memcached]
host=*****
port=****
The top 4 configuration can be referenced in X-Mars/Zabbix-Alert-WeChat.
url:The url for main process over internet language:en_US or zh_Hans
vim zabbixwechat/settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'alarm', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'alarm',
'PASSWORD': 'alarm',
'HOST': 'alarm', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '3306', # Set to empty string for default.
'TEST_CHARSET': 'utf8',
'TEST_COLLATION': 'utf8_general_ci',
}
}
python3 manage.py makemigrations python3 manage.py migrate
The configuration of the permissions of the message,also reference X-Mars/Zabbix-Alert-WeChat
If you want to add the Summary Table
on the menu of Wechat:
1.add the trusted domain name
2 . add an jump to
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx7dec596b2599614c&redirect_uri=http%3a%2f%2f*********%2fall&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect in the configuration。 Replace ******* with the urlencode domain name
http://tool.chinaz.com/tools/urlencode.aspx This URL can encode the domain name
python3 manage.py runserver 0.0.0.0:80
Enjoy!!!
本项目目的是在微信端搭建一个兼容各个监控系统的统一报警处理系统,能实现报警提醒,报警压缩,报警分类,报警汇总报表等功能。主服务器实质上是一台位于公网上的http服务器,位于各地的zabbix server将报警信息经过初步处理后通过http post请求将信息传送至主服务器,主服务器将信息经过一定的处理再完成和微信端(报警接受者)进行处理,上文中的功能都可以实现,需要使用者有一定的linux、python、zabbix基础。
整个安装配置较为复杂,使用的组件较多
ssh-keygen -b 4096 -t rsa -f /etc/zabbix/pub
mv /etc/zabbix/pub.pub /etc/zabbix/pub.key
zabbix_server_charturl = "http://127.0.0.1/zabbix/chart.php" ##zabbix server 绘图接口
ttserver = "http://www.example.com:1978" ##公网的ttserver 安装步骤见下面
server_url = "http://www.example.com/getvalue" ##公网的主服务器接口
curl -c /tmp/zabbix_cookie -d "name=Admin&password=zabbix&autologin=1&enter=Sign+in" http://127.0.0.1/zabbix/index.php
地址更改为zabbix server的地址,生成cookie的目的是便于脚本绘图时候不用认证了。
{TRIGGER.NAME}@@@{TRIGGER.DESCRIPTION}@@@{HOSTNAME}@@@{TRIGGER.SEVERITY}@@@{ITEM.ID}@@@{TRIGGER.STATUS}@@@{HOST.CONN}@@@{TRIGGER.HOSTGROUP.NAME}@@@{EVENT.ID}@@@
action 只需要传送一个参数,
yum install mariadb-server -y
systemctl enable mariadb
systemctl start mariadb
CREATE DATABASE `alarm` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; #
grant all privileges on *.* to [email protected] identified by 'alarm';
yum install memcached
systemctl enable memcached
systemctl start memcached
yum install bzip2-devel gcc zlib-devel -y
wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz
wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gz
tar zxvf tokyocabinet-1.4.48.tar.gz
cd tokyocabinet-1.4.48
./configure
make && make install
tar zxvf tokyotyrant-1.1.41.tar.gz
cd tokyotyrant-1.1.41
./configure
make && make install
mkdir /ttdata/
./ttserver -port 1978 -thnum 8 -tout 30 -dmn -pid /ttdata/tt.pid -kl -log /ttdata/tt.log -le -ulog /ttdata -ulim 128m -sid 1 -rts /ttdata/tt.rts /ttdata/ttdb.tch
yum install python34 python34-pip python34-devel
pip3 install django pymysql django_crontab redis pycrypto
[wechat]
corp_id=******************
corp_secret=*******************
toparty=***********
agentid=*************
url=http://**************
language=zh_Hans
[memcached]
host=****
port=****
其中上面4条为微信企业号的配置,可以参考X-Mars/Zabbix-Alert-WeChat url 为服务器80端口的域名 language:目前支持 zh_Hans en_US
vim zabbixwechat/settings.py
DATABASES = {
'default': {
'ENGINE': sls'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'alarm', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'alarm',
'PASSWORD': 'alarm',
'HOST': 'alarm', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '3306', # Set to empty string for default.
'TEST_CHARSET': 'utf8',
'TEST_COLLATION': 'utf8_general_ci',
}
}
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver 0.0.0.0:80