Hello,
I'm running SPADS autohost on my Linux machine 24/7. I would like to monitor it in some way. At least I would like to monitor if game is on and how many players are playing. I would like to know how many players are in lobby too.
I saw some RRDtool graphs on internet, that showed waiting time (for game), connected players (in lobby and in all games) and so on. I would like to have the same thing, but only for my server.
Problem is, that I can't even imagine where to start... I don't know any command (I suppose in Linux command line) which would give me any info.
I have running Cacti and have experience with SNMP, monitoring of various system things etc.
Is there some developer or experienced user who can help me with monitoring Sping/SPADS?
Many thanks for any help
For mods: If this is not the right place to ask, please move thread somewhere else.
Monitoring of my server (SPADS autohost)
Moderator: Moderators
Re: Monitoring of my server (SPADS autohost)
I thought something as that. Does anybody know about Cacti templates or how to digest the data and from where (Springlobby server, my spring server, my SPADS autohost, ...)?
Re: Monitoring of my server (SPADS autohost)
Those stats are done by bibimPavouk106 wrote:I thought something as that.
I once asked him in PM how much they could be customized to ie include a new game in the stats, this was his reply:
So it seems to be pretty hardcoded/custom made.bibim wrote:I will see what I can do when I have some time, but unfortunately it's not that easy to add new data to this statistic system (actually it's just the supervision application used to monitor my server which I reused to generate Spring graphs). It relies on a Spring bot I coded to analyze Spring lobby traffic and populate Round Robin Databases, which are then used by Cacti to generate graphs dynamically. Graphs themselves are very easily customizable, but for existing data only. If I need to collect new data then I have to perform modifications in several places...
not sure tbh. Description of Help&Bugs says how it is about problems with the engine but hm.For mods: If this is not the right place to ask, please move thread somewhere else.
"Infrastructure Development" might be fitting though it seems more about developing new stuff, not support.
And there is also the SPADS thread in General: http://springrts.com/phpbb/viewtopic.php?f=1&t=17130 (you might want to post a link to this thread in there)
So I'll leave it here, though if you want to be moved just tell.
Re: Monitoring of my server (SPADS autohost)
Pavouk106, to generate this type of graph you need to populate Round Robin Databases with the information you want.
You could do this by using a bot which connects to Spring lobby server and listens to messages concerning the autohost you want to monitor. I think there are several Spring lobby interface libraries available for different languages, so you wouldn't need to recode all the boring interface part (if you know Perl you can even use the one used by SPADS).
Actually if you know Perl, you could also patch SPADS so that it would directly output the data you want.
You could do this by using a bot which connects to Spring lobby server and listens to messages concerning the autohost you want to monitor. I think there are several Spring lobby interface libraries available for different languages, so you wouldn't need to recode all the boring interface part (if you know Perl you can even use the one used by SPADS).
Actually if you know Perl, you could also patch SPADS so that it would directly output the data you want.
Re: Monitoring of my server (SPADS autohost)
Bibim: Hey man, you are definitely crazy :-D
I don't know Perl, I don't even know basics how the lobby functions, I use it only like regular player
Thanks for your answer, it just proved that there is no easy way to do it
Maybe this could be a little challenge for game developers
To include some function which would tell you how many players and spectators are in the running game and how long it takes (if there is running game). You would get this number by asking through some command (for example "spring --stats").
I don't know how much work this would be for them, but maybe they could think about it.
And if they won't nothing happens
Thanks for answers
I don't know Perl, I don't even know basics how the lobby functions, I use it only like regular player

Thanks for your answer, it just proved that there is no easy way to do it

Maybe this could be a little challenge for game developers

I don't know how much work this would be for them, but maybe they could think about it.
And if they won't nothing happens

Thanks for answers