How to monitor minetest server?

User avatar
vitaminx
Member
 
Posts: 49
Joined: Tue Dec 30, 2014 15:08
GitHub: vitaminx

How to monitor minetest server?

by vitaminx » Wed Jan 14, 2015 09:14

Hi everyone, how you are monitoring your servers? I saw some nice graphs around with the number of connected players and some other general stuff like CPU usage and such.
How do you pull the numbers out of the minetest server? Do you write a script that connects to the API and returns the values or are there already premade scripts or mods doing that?

The question is not about which monitoring tool to use (cactii, munin, nagios, zabbix, etc.) because I already have my favorite system (zabbix), but rather about how to pull all the numbers from the server.

Thanks!
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: How to monitor minetest server?

by sfan5 » Wed Jan 14, 2015 12:01

You can have a Lua mod that writes e.g. the number of players into a file every 30 seconds.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: How to monitor minetest server?

by ExeterDad » Wed Jan 14, 2015 12:48

VanessaE has some nice shell scripts that parse the log files to get all kinds of info.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

Re: How to monitor minetest server?

by Pitriss » Fri Jan 16, 2015 11:48

vitaminx wrote:about how to pull all the numbers from the server.


https://github.com/Pitriss/overridemodpack/tree/master/munin

some example which is running fine on our private server.. rest info about CPU usage, RAM usage etc. is gathered by standard linux tools
I reject your reality and substitute my own. (A. Savage, Mythbusters)
I'm not modding and/or playing minetest anymore. All my mods were released under WTFPL. You can fix/modify them yourself. Don't ask me for support. Thanks.
 

User avatar
vitaminx
Member
 
Posts: 49
Joined: Tue Dec 30, 2014 15:08
GitHub: vitaminx

Re: How to monitor minetest server?

by vitaminx » Fri Jan 16, 2015 15:30

Awesome! That helped a lot and together with some logfile grep magic this is what I came up with.

zabbix_graph.png
zabbix_graph.png (38.8 KiB) Viewed 820 times

zabbix_metrics.png
zabbix_metrics.png (104.45 KiB) Viewed 820 times


Thanks,
vitaminx
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: How to monitor minetest server?

by ExeterDad » Fri Jan 16, 2015 17:49

vitaminx wrote:Awesome! That helped a lot and together with some logfile grep magic this is what I came up with.

zabbix_graph.png

zabbix_metrics.png


Thanks,
vitaminx

Nice setup! Grep and sed are my best friends :)
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 35 guests

cron