I
I
Ivan2022-04-11 07:37:25
Web development
Ivan, 2022-04-11 07:37:25

How is game server monitoring done?

Hello! Tell me how they monitor servers for games, for example, for Minecraft or CS.
Do servers have an API? Or how does it happen?

The only thing that comes to my mind is to parse the server site and get the status and number of players online from the page.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
G
gd1xza, 2022-04-11
@gd1xza

e.g. for minecraft

Do servers have an API? Or how does it happen?

parse the server site and get the status and number of online players from the page

Just in minecraft there are 2 ways to get online if there is no access to the server and 2 more if there is. (i.e. if the owner himself added to the monitoring then 4)
1. - Server list ping part of the minecraft protocol that requests online servers / player nicknames / motd when the client updates the list of servers in the launcher.
2 - query an additional protocol on servers that also allows you to find out online (usually disabled)
3 - if you have access to the console, then through RCON the online command (but they almost never do this)
4 - a plugin on the server that, when updated online or in time, will be sent to monitoring infu

D
Drno, 2022-04-11
@Drno

Server monitoring and online output are two different things...

V
V Sh., 2022-04-11
@JuniorNoobie

A game is, first and foremost, a data stream. And this data is stored somewhere. Large MMORPG games have separate database servers for profiles and their states, chat, global game state. Data, in such cases, is taken directly from the database through queries.
There are also games that store data directly in the application's RAM (for example, in a singleton). Then the class responsible for storing data should have methods for monitoring (if they are needed) and an API for displaying this data.
It all depends on the implementation. And yes, such information is only available to developers or administrators. If you want everything to be beautiful, then write to the server administration and ask if they can provide you with data. If they can’t or refuse, then yes, you will need to parse from somewhere, for example, from their website.

D
Denis Derepko, 2022-04-11
@uDenX

https://github.com/Austinb/GameQ

G
Griboks, 2022-04-11
@Griboks

Usually this is an API from the game itself. Some games specifically close this possibility for their own selfish purposes. There are also aggregators, such as statistical data from Steam.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question