This repository contains some useful Munin plugins to monitor and observe a Bukkit server:
- bukkit-jsonapi-players - players currently online
- bukkit-jsonapi-ramusage - RAM usage
- bukkit-jsonapi-tps - TPS (ticks per second)
- bukkit-statistician-killshostile - hostile mob kills
- bukkit-statistician-killsneutral - neutral mob kills
- bukkit-statistician-killspassive - passive mob kills
- bukkit-statistician-players - new players per day
- bukkit-ultrabans-shame - kicks/bans/mutes/etc. per day
bukkit-jsonapi-* requires JSONAPI
bukkit-statistician-* requires Statistician
bukkit-ultrabans-* requires Ultrabans
Read more in my blog post.
- Web server with
PHP
support and Munin (2) - Bukkit server with JSONAPI for the JSONAPI plugins (
bukkit-jsonapi-*
) - Bukkit server with Ultrabans for the Ultrabans plugins (
bukkit-ultrabans-*
) - Bukkit server with Statistician for the MySQL plugins (
bukkit-statistician-*
) - MySQL server for the SQL plugins
- Clone this repository:
git clone git@github.com:frdmn/munin-bukkit-plugins.git
- Adjust the JSONAPI variables in the bukkit-jsonapi-* files
- Adjust the MySQL variables in the mcsql* files
- Make sure the
PHP
binary in the Shebang line is executable
- Perform your configuration (see above)
- Move the plugins into the Munin plugin directory:
mv mc* /usr/share/munin/plugins/
- Change the ownership:
chown munin:munin /usr/share/munin/plugins/mc*
- Make sure they are exectuable:
chmod 755 /usr/share/munin/plugins/mc*
- Enable the plugins:
ln -s /usr/share/munin/plugins/mc* /etc/munin/plugins/
- Restart your munin-node:
service munin-node restart
- Run your cron:
su - munin --shell=/bin/sh -c /usr/bin/munin-cron
To setup alerts and limits add the following lines in your specific node in the munin.conf
file:
[obi-wan.yeahwh.at]
address 5.9.115.5
[...]
mctps_main.warning 19.9: # Warning alert on < 19.9
mctps_main.critical 19: # Critical alert on < 19.0
mcplayer_main.warning 20 # Warning alert when there are 20 players online
mcplayer_main.critical 30 # Critical alert when there are more than 30 players online