Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / minecraft / jsonapi @ fb433dc4

Nom Taille Révision Âge Auteur Commentaire
README.md 2,3 ko fb433dc4 plus de 11 ans Jonas Friedmann Indention
mcjsonplayers 1,14 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcjsonramusage 1,39 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcjsontps 1,19 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcsqls2killshostile 5,33 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcsqls2killsneutral 2,45 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcsqls2killspassive 3,95 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcsqls2players 1,4 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal
mcsqlubshame 3,87 ko 4192c14f plus de 11 ans Jonas Friedmann comment format renewal

Dernières révisions

# Date Auteur Commentaire
fb433dc4 2014-03-13 07:21 Jonas Friedmann

Indention

f1cef241 2014-03-13 07:21 Jonas Friedmann

Example for alerts / limits

4192c14f 2014-03-13 07:21 Jonas Friedmann

comment format renewal

22436814 2014-03-13 07:21 Jonas Friedmann

added some whitespaces

2b174682 2014-03-13 07:21 Jonas Friedmann

new Statistician and Ultrabans (SQL) plugins

ed43e06b 2014-03-13 07:21 Jonas Friedmann

new README for new plugins

c94bfaf9 2014-03-13 07:21 Jonas Friedmann

reorded the tasks

815075fe 2014-03-13 07:21 Jonas Friedmann

missing '`'

70b328ac 2014-03-13 07:21 Jonas Friedmann

fixed a typo

9066b8ff 2014-03-13 07:21 Jonas Friedmann

more pretty code highlighting

Voir les révisions

README


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

Alerts and limits?

To setup alerts and limits add the following lines in your specific node in the munin.conf file:

[kotor.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

Formats disponibles : Atom