- python3
- requests
pip3 install requests
nmonit.py [-h] [--connection_string CONNECTION_STRING] [--slack_webhook SLACK] [--discord_webhook DISCORD] --nickname NICKNAME
Flag | Description | Default |
---|---|---|
-h, --help | show this help message and exit | |
--connection_string | RPC connection to node | localhost:7076 |
--slack_webhook | Slack Websocket url to send to | unset |
--discord_webhook | Discord Webhook to send to | unset |
--nickname | endpoint nickname |
- Server Settings
- Integrations
- Create Webhook
- Create Slack App
- Enable Incoming Webhooks
- Create Webhook
crontab -e
- add the following to the crontab
*/5 * * * * /path/to/python3 /path/to/nmonit.py --connection_string=\<endpoint:port\> --slack_webhook=\<slack webhook url\> --discord_webhook=\<discord webhook url\> --nickname=\<connection nickname>
adjusting */5 * * * * as required