ouqiang / Supervisor Event Listener
Licence: mit
Supervisor事件通知, 支持邮件, Slack, WebHook
Stars: ✭ 95
Programming Languages
go
31211 projects - #10 most used programming language
Labels
Projects that are alternatives of or similar to Supervisor Event Listener
Supervisoradmin
supervisor admin is a centralized management tools written by django
Stars: ✭ 31 (-67.37%)
Mutual labels: supervisor
Autoops
linux资产管理,cmdb,django, webssh,运维管理平台,数据库操作平台 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 340 (+257.89%)
Mutual labels: supervisor
Roadrunner
🤯 High-performance PHP application server, load-balancer and process manager written in Golang
Stars: ✭ 6,122 (+6344.21%)
Mutual labels: supervisor
Immortal
⭕ A *nix cross-platform (OS agnostic) supervisor
Stars: ✭ 701 (+637.89%)
Mutual labels: supervisor
Docker Laravel Queue Worker
A docker image for working with queues being monitored by supervisor as recommended by laravel.
Stars: ✭ 60 (-36.84%)
Mutual labels: supervisor
Gosuv
Deprecated!!! Process managerment writtern by golang, inspired by python-supervisor
Stars: ✭ 618 (+550.53%)
Mutual labels: supervisor
Supervisord
Async first supervisord HTTP API Client for PHP 7
Stars: ✭ 14 (-85.26%)
Mutual labels: supervisor
Ergo
a Framework for creating mesh networks using technologies and design patterns of Erlang/OTP in Golang
Stars: ✭ 376 (+295.79%)
Mutual labels: supervisor
Cesi
CeSI is a web interface for managing multiple supervisors from the same place.
Stars: ✭ 500 (+426.32%)
Mutual labels: supervisor
React Native Full Example
第一个完整的react-native项目。包括服务端和移动端两部分。服务端使用express+bootstrap进行搭建,主要功能有登录、退出、模块选择、查看、修改、删除、分页等后台管理的基本功能;移动端主要用到组件View、Text、Image、ScrollView、ListView等常用的组件,也使用了第三方的地图服务(高德地图),作为初学者。是一个很好的学习案例。
Stars: ✭ 809 (+751.58%)
Mutual labels: supervisor
Svsh
Process supervision shell for daemontools, perp, s6 and runit
Stars: ✭ 46 (-51.58%)
Mutual labels: supervisor
superdiscoverer
A Supervisor backed service discoverer for automatic service-discovery.
Stars: ✭ 15 (-84.21%)
Mutual labels: supervisor
Akka Essentials
Java/Scala Examples from the book - Akka Essentials
Stars: ✭ 700 (+636.84%)
Mutual labels: supervisor
Earl
Service Objects for Crystal (Agents, Artists, Supervisors, Pools, ...)
Stars: ✭ 89 (-6.32%)
Mutual labels: supervisor
X Proxies
Usable ip proxies, crawling from some proxy websites.
Stars: ✭ 53 (-44.21%)
Mutual labels: supervisor
Horde
Horde is a distributed Supervisor and Registry backed by DeltaCrdt
Stars: ✭ 834 (+777.89%)
Mutual labels: supervisor
supervisor-event-listener
Supervisor事件通知, 支持邮件, Slack, WebHook
简介
Supervisor是*nix环境下的进程管理工具, 可以把前台进程转换为守护进程, 当进程异常退出时自动重启.
supervisor-event-listener监听进程异常退出事件, 并发送通知.
下载
源码安装
go get -u github.com/ouqiang/supervisor-event-listener
Supervisor配置
[eventlistener:supervisor-event-listener]
; 默认读取配置文件/etc/supervisor-event-listener.ini
command=/path/to/supervisor-event-listener
; 指定配置文件路径
;command=/path/to/supervisor-event-listener -c /path/to/supervisor-event-listener.ini
events=PROCESS_STATE_EXITED
......
/etc/supervisor-event-listener.ini
配置文件, 默认读取[default]
# 通知类型 mail,slack,webhook 只能选择一种
notify_type = mail
# 邮件服务器配置
mail.server.user = [email protected]
mail.server.password = 123456
mail.server.host = smtp.163.com
mail.server.port = 25
# 邮件收件人配置, 多个收件人, 逗号分隔
mail.user = [email protected]
# Slack配置
slack.webhook_url = https://hooks.slack.com/services/xxxx/xxx/xxxx
slack.channel = exception
# WebHook通知URL配置
webhook_url = http://my.webhook.com
通知内容
邮件、Slack
Host: ip(hostname)
Process: process-name
PID: 6152
EXITED FROM state: RUNNING
WebHook, Post请求, 字段含义查看Supervisor文档
{
"Header": {
"Ver": "3.0",
"Server": "supervisor",
"Serial": 11,
"Pool": "supervisor-listener",
"PoolSerial": 11,
"EventName": "PROCESS_STATE_EXITED",
"Len": 84
},
"Payload": {
"Ip": "ip(hostname)",
"ProcessName": "process-name",
"GroupName": "group-name",
"FromState": "RUNNING",
"Expected": 0,
"Pid": 6371
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].