Page 1 of 1

How to monitor minetest server?

PostPosted: Wed Jan 14, 2015 09:14
by vitaminx
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!

Re: How to monitor minetest server?

PostPosted: Wed Jan 14, 2015 12:01
by sfan5
You can have a Lua mod that writes e.g. the number of players into a file every 30 seconds.

Re: How to monitor minetest server?

PostPosted: Wed Jan 14, 2015 12:48
by ExeterDad
VanessaE has some nice shell scripts that parse the log files to get all kinds of info.

Re: How to monitor minetest server?

PostPosted: Fri Jan 16, 2015 11:48
by Pitriss
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

Re: How to monitor minetest server?

PostPosted: Fri Jan 16, 2015 15:30
by vitaminx
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 1755 times

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


Thanks,
vitaminx

Re: How to monitor minetest server?

PostPosted: Fri Jan 16, 2015 17:49
by ExeterDad
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 :)