A simple bot for monitoring your web services status and automatically publish issues on cState.
git clone https://github.com/thuhole/status-probe
cd status-probe
pip3 install -r requirements.txt
Copy config.json.example
to config.json
, then edit:
token
: GitHub Personal Tokenrepo
: Your forked cstate/example repo.tasks
: Websites you wanna monitorCategory
:Reference
or Whatever you likeName
: The system name in your cState config.ymlURL
: The HTTP GET url you want to monitorCode
: The expecting status code
Reference
websites are assumed to have 100% uptime. If any Reference
website is offline, your services' offline won't be counted. You can use popular websites like Google as Reference
websites.