2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/minecraft/jsonapi
2014-03-13 12:21:27 +01:00
..
mcjsonplayers first version of the plugins 2014-03-13 12:21:27 +01:00
mcjsonramusage first version of the plugins 2014-03-13 12:21:27 +01:00
mcjsontps first version of the plugins 2014-03-13 12:21:27 +01:00
mcsqls2killshostile new Statistician and Ultrabans (SQL) plugins 2014-03-13 12:21:27 +01:00
mcsqls2killsneutral new Statistician and Ultrabans (SQL) plugins 2014-03-13 12:21:27 +01:00
mcsqls2killspassive new Statistician and Ultrabans (SQL) plugins 2014-03-13 12:21:27 +01:00
mcsqls2players new Statistician and Ultrabans (SQL) plugins 2014-03-13 12:21:27 +01:00
mcsqlubshame new Statistician and Ultrabans (SQL) plugins 2014-03-13 12:21:27 +01:00
README.md added some whitespaces 2014-03-13 12:21:27 +01:00

munin-bukkit-plugins

This repository contains some useful Munin plugins to monitor and observe a Bukkit server:

  • mcjsonplayers - players currently online
  • mcjsonramusage - RAM usage
  • mcjsontps - TPS (ticks per second)
  • mcsqls2killshostile - hostile mob kills
  • mcsqls2killsneutral - neutral mob kills
  • mcsqls2killspassive - passive mob kills
  • mcsqls2players - new players per day
  • mcsqlubshame - kicks/bans/mutes/etc. per day

mcjson* requires JSONAPI mcsqls2* requires Statistician mcsqlub* requires Ultrabans

Read more in my blog post.

Requirements

  • Web server with PHP support and Munin (2)
  • Bukkit server with JSONAPI for the JSONAPI plugins (mcjson*)
  • Bukkit server with Ultrabans for the Ultrabans plugins (mcsqlub*)
  • Bukkit server with Statistician for the MySQL plugins (mcsqls2*)
  • MySQL server for the SQL plugins

Configuration

  1. Clone this repository: git clone git@github.com:frdmn/munin-bukkit-plugins.git
  2. Adjust the JSONAPI variables in the mcjson* files
  3. Adjust the MySQL variables in the mcsql* files
  4. Make sure the PHP binary in the Shebang line is executable

Installation

  1. Perform your configuration (see above)
  2. Move the plugins into the Munin plugin directory: mv mc* /usr/share/munin/plugins/
  3. Change the ownership: chown munin:munin /usr/share/munin/plugins/mc*
  4. Make sure they are exectuable: chmod 755 /usr/share/munin/plugins/mc*
  5. Enable the plugins: ln -s /usr/share/munin/plugins/mc* /etc/munin/plugins/
  6. Restart your munin-node: service munin-node restart
  7. Run your cron: su - munin --shell=/bin/sh -c /usr/bin/munin-cron