This project is archiaved at the moment. (This) tiny monitoring service idea is being further developed under the @savla-dev operation.
Public status page (demo, may not work in the future):
For auth the supervisor API key is required (for now). Better deploy it locally to be able to fully test it through.
# have docker engine installed
# deploy app
make deploy
# run unit tests
make test
# check .env file for SWAGGER_EXPOSE_PORT and open it locally in browser
http://localhost:${SWAGGER_EXPOSE_PORT}/
Show the structure of Makefile targets
make
Check and configure the host environment (docker, docker-compose, curl,...)
make config
make config ENV=devel
Deploy the app (build, run and test the image) to docker
make deploy
Run unit tests – tries to run basic scenario with all API calls used at a time
make test
Test the API calls, even ones requiring the JSON payload!
make call FUNCTION=GetSystemStatus
make call FUNCTION=AddGroup JSON_FILE=test/AddGroup.json
Generate API documentation to PDF
make doc
GetStatus
GetDetail
GetGroups
GetUsers
GetHosts
AddUser
AddUserGroup
AddHost
AddService
AddHostGroup
SetUser
SetUserGroup
SetHost
SetService
SetHostGroup
StopAll
StartAll
– downtime per service (optional) – telegram_chat_id per group – user permissions (super, power, basic)