https://github.com/willis7/service_status
A simple Golang based service availability checker
https://github.com/willis7/service_status
go golang monitoring uptime
Last synced: about 1 year ago
JSON representation
A simple Golang based service availability checker
- Host: GitHub
- URL: https://github.com/willis7/service_status
- Owner: willis7
- License: mit
- Created: 2018-02-14T15:31:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T23:55:46.000Z (over 8 years ago)
- Last Synced: 2025-04-13T16:59:58.648Z (about 1 year ago)
- Topics: go, golang, monitoring, uptime
- Language: Go
- Size: 47.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WIP: Service Status
[](https://travis-ci.org/willis7/service_status)
Simple Golang project to generate a static status page.
## Installation
With Make:
* `make build` - build the project on your workstation
## Usage
### `config.json`
Below is an example config which coveres the implemented checks.
``` json
{
"services": [
{
"type": "ping",
"url": "http://google.com"
},
{
"type": "grep",
"url": "https://stackoverflow.com/",
"regex": "Ask Question"
},
{
"type": "grep",
"url": "https://www.bbc.co.uk/",
"regex": "hello world"
}
]
}
```
TODO: Write more usage instructions
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## TODO
* [x] load `config.json`
* [x] use template to build html
* [x] serve html
* [x] ping tests
* [x] grep tests
* [ ] iterate over and test each service from config
* [X] pass results to template
* [ ] sqlite persistent data
* [ ] reactive status page
## Credits
* [CycleNerd](https://github.com/Cyclenerd/static_status) for the bash script inspiration
## License
MIT