https://github.com/chakany/statuspost
Quick and dirty way to monitor and report the status of services running on your server
https://github.com/chakany/statuspost
bash-script statuspage statuspage-io statuspage-notifier statuspageio
Last synced: 4 months ago
JSON representation
Quick and dirty way to monitor and report the status of services running on your server
- Host: GitHub
- URL: https://github.com/chakany/statuspost
- Owner: chakany
- Created: 2021-08-03T15:55:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T21:47:15.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T11:49:21.794Z (6 months ago)
- Topics: bash-script, statuspage, statuspage-io, statuspage-notifier, statuspageio
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statuspost
An quick and dirty way to monitor and report the status of services running on your server
This is intended to be used with [Atlassian Statuspage](https://statuspage.io/). Though it can be modified to work with just about any kind of webhook
It checks if an application is bound to a port, and if it is it will report it as online, if not it will report it as down.
### Setup
New services can be declared by copy & pasting that same object, and incrementing the number.
```bash
declare -A addressX=(
[port]="1204"
[status]="statuspage_url"
[degraded]="major_outage"
)
```1. Get your Statuspage API key and fill it out in the "authorization" section
2. Fill out all of the details for your services, (urls, port, type of outage)
3. Test it!If all is well with your script, and it reports outages correctly, you could put it on cron!
This is what is used for monitoring the [Ryuko Discord Bot](https://ryuko.cc) since rarely the host server is offline.