mirror of
https://github.com/Luzifer/tsstatus.git
synced 2024-10-18 05:14:22 +00:00
Utility to expose a status of a TeamSpeak3 server
c650e7bfc6
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20191206220618-eeba5f6aabab to 0.1.0. - [Release notes](https://github.com/golang/sys/releases) - [Commits](https://github.com/golang/sys/commits/v0.1.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.gitignore | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md | ||
ts.go |
Luzifer / tsstatus
tsstatus
is a small utility to expose a status of a TeamSpeak3 server.
This can be used to have a monitoring for the server (HTTP 200 vs. HTTP 500) and to retrieve a list of users being present in a channel
# curl -sSf http://localhost:3000/status | jq .
{
"info": {
"server": {
"clients_online": 2,
"host_button_gfxurl": "https://knut.cc/permanent/1a79a0/luzifer_220px.svg.png",
"host_button_url": "https://luzifer.io/",
"max_clients": 32,
"name": "TS @ luzifer.io",
"port": 9987,
"status": "online",
"uptime": 8219,
"version": "3.10.2 [Build: 1574239171]",
"welcome_message": "Welcome to TeamSpeak on luzifer.io!"
},
"channels": [
{
"id": 1,
"name": "Lobby",
"clients": [
{
"away": false,
"away_message": "",
"nickname": "Luzifer"
}
]
},
{
"id": 2,
"name": "Game I",
"clients": null
},
{
"id": 3,
"name": "Game II",
"clients": null
},
{
"id": 4,
"name": "Game III",
"clients": null
},
{
"id": 9,
"name": "AFK",
"clients": null
}
]
}
}