A supervisord process notification for rocketchat.
Project description
# superrocket
Short Description:
---
A supervisord process notification for rocketchat.
This project has been highly inspired from the [superslacker](https://github.com/MTSolutions/superslacker) project.
## Usage:
To use it with supervisor put this as a plugin in your `supervisor.conf`
```
[eventlistener:superslacker]
command=superslacker --webhook="your-complete-rocketchat-webhook" --channel="#notifications" --hostname="HOST"
events=PROCESS_STATE,TICK_60
```
## Options:
```
usage: superrocket [-h] -c CHANNEL -w WEBHOOK [-a ATTACHMENT] [-n HOSTNAME]
[-b BOTNAME] [-k]
Send messages from supervisor state changes, to RocketChat
optional arguments:
-h, --help show this help message and exit
-c CHANNEL, --channel CHANNEL
RocketChat channel to post message to
-w WEBHOOK, --webhook WEBHOOK
RocketChat WebHook URL
-a ATTACHMENT, --attachment ATTACHMENT
RocketChat attachment text
-n HOSTNAME, --hostname HOSTNAME
System Hostname
-b BOTNAME, --botname BOTNAME
Default username for the bot
-k, --insecure Skip RocketChat server certificate verification
```
## Current Stable Version
```
0.1.0
```
## Installation
### via pip
```
pip install superrocket
```
### Development Installation
* Clone the project.
* Install in Anaconda3 environment
* This command creates a python environment and then activates it.
```
$ make recreate_pyenv && chmod +x activate-env.sh && . activate-env.sh
```
* Now install the application in editable mode and you are ready to start development
```
$ pip install -e .
```
## Test
To run the tests:
```
make test
```
## Examples
```
$ python examples/simple.py
```
## License
See the LICENSE and Copyright.txt files.
Short Description:
---
A supervisord process notification for rocketchat.
This project has been highly inspired from the [superslacker](https://github.com/MTSolutions/superslacker) project.
## Usage:
To use it with supervisor put this as a plugin in your `supervisor.conf`
```
[eventlistener:superslacker]
command=superslacker --webhook="your-complete-rocketchat-webhook" --channel="#notifications" --hostname="HOST"
events=PROCESS_STATE,TICK_60
```
## Options:
```
usage: superrocket [-h] -c CHANNEL -w WEBHOOK [-a ATTACHMENT] [-n HOSTNAME]
[-b BOTNAME] [-k]
Send messages from supervisor state changes, to RocketChat
optional arguments:
-h, --help show this help message and exit
-c CHANNEL, --channel CHANNEL
RocketChat channel to post message to
-w WEBHOOK, --webhook WEBHOOK
RocketChat WebHook URL
-a ATTACHMENT, --attachment ATTACHMENT
RocketChat attachment text
-n HOSTNAME, --hostname HOSTNAME
System Hostname
-b BOTNAME, --botname BOTNAME
Default username for the bot
-k, --insecure Skip RocketChat server certificate verification
```
## Current Stable Version
```
0.1.0
```
## Installation
### via pip
```
pip install superrocket
```
### Development Installation
* Clone the project.
* Install in Anaconda3 environment
* This command creates a python environment and then activates it.
```
$ make recreate_pyenv && chmod +x activate-env.sh && . activate-env.sh
```
* Now install the application in editable mode and you are ready to start development
```
$ pip install -e .
```
## Test
To run the tests:
```
make test
```
## Examples
```
$ python examples/simple.py
```
## License
See the LICENSE and Copyright.txt files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
superrocket-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for superrocket-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d0d8ca2340665bff5ec780a25faa49ecbbce81ea5aeb94148c8b1759ba3606e |
|
MD5 | 41af4c4230f21ddd5b7cbbd4a192d933 |
|
BLAKE2b-256 | 592edb2067d4f301e5cf07af9b6e46aaef9bf4eb82fb4d06e0af461ebd58ad96 |