Skip to content

Commit 1020f2d

Browse files
committed
Rename COPYRIGHT to LICENSE, update README
Updates the README.mediawiki file to match the latest version on the wiki. Change-Id: I9f66888e935ba2abd7533b337f474ca6c765863d
1 parent aa1c398 commit 1020f2d

2 files changed

Lines changed: 61 additions & 13 deletions

File tree

File renamed without changes.

README.mediawiki

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
1-
<!--
2-
1+
<div style="font color: #F00; font-weight: bold;">
32
ATTENTION: This is a raw wikimarkup copy of the "live" README on LizardWiki at <https://fastlizard4.org/wiki/Download:Minecraft_Munin_plugins>
43

5-
This copy may not be up to date, so if at all possible please refer to the LizardWiki version linked to above!
6-
7-
For copyright information, please open the COPYRIGHT file.
4+
This copy may not be up to date, so if at all possible please refer to the LizardWiki version linked to above! This file may also have rendering errors if viewed on GitHub; again, for accurate
5+
rendering (complete with images), please click the link above!
86

9-
-->
7+
For copyright and licensing information, please open the LICENSE file.
8+
</div>
109

1110
'''LIZARDNET FASTLIZARD4/MUNIN-PLUGINS/MINECRAFT - A set of RRDTool/Munin plugins written in PHP to graph various statistics regarding a Minecraft server.'''
1211

12+
[[File:Minecraft Munin plugins demo.png|thumb|right|600px|Some captured graphs from my own Minecraft servers utilizing these plugins (click to enlarge)]]
1313
__TOC__
14+
{{-}}
15+
16+
== Git, Download, and Source Code ==
17+
*[[File:Git icon.svg|20px|link=]] '''Clone with Git (Gerrit): <code>git clone https://gerrit.fastlizard4.org/r/p/munin-plugins/minecraft.git</code>'''
18+
*[[File:Jenkins logo.svg|20px|link=]] '''Jenkins Tests: [https://integration.fastlizard4.org/jenkins/job/munin-plugins-minecraft%20tests/ integration.fastlizard4.org] | Status (including experimental, unmerged patchsets awaiting code review): <htmlet>buildstatus.munin-plugins-minecraft</htmlet>'''
1419
15-
== Git Download and Source Code ==
1620
*[https://git.fastlizard4.org/gitblit/summary/?r=munin-plugins/minecraft.git Repository summary]
1721
*[https://git.fastlizard4.org/gitblit/tree/?r=munin-plugins/minecraft.git Source tree]
1822
*[https://git.fastlizard4.org/gitblit/tags/?r=munin-plugins/minecraft.git Tagged releases]
1923
*[https://gerrit.fastlizard4.org/r/#/q/project:munin-plugins/minecraft,n,z ''Commits awaiting code review (pull requests)'']
2024
*[https://ridley.fastlizard4.org/bugzilla/buglist.cgi?product=munin-plugins%2Fminecraft&component=%28not%20applicable%29&resolution=---&list_id=6 ''Currently open bug reports'']
2125
26+
=== GitHub Mirroring ===
27+
A '''read-only''' mirror of the LizardNet Gerrit project is available on GitHub. Pull requests and issue reports are accepted there, however they will be only acted on in Gerrit (in the case of pull requests, they will be converted into patches and submitted by a developer as a new patchset in Gerrit before they are acted on). Developers with direct push access should never push directly to the GitHub repository and should instead submit their code to Gerrit. LizardNet Continuous Integration automatically pushes all commits to the master branch on LizardNet Gerrit to GitHub when the patchset is approved and merged.
28+
29+
*[[File:GitHub logo 2013.svg|40px|link=]] '''GitHub Mirror: [https://github.com/LizardNet/munin-plugins-minecraft LizardNet/munin-plugins-minecraft] | Mirroring status: <htmlet>buildstatus.githubmirror.munin-plugins-minecraft</htmlet>'''
30+
2231
== Information ==
2332
This is a set of plugins that can be used in tandem with Munin (or RRDTool) to graph various aspects of a Minecraft server, including:
2433
*Loaded chunks (overworld, Nether, and The End) (minecraft_chunks.php)
@@ -29,19 +38,37 @@ This is a set of plugins that can be used in tandem with Munin (or RRDTool) to g
2938
3039
=== Prerequisites ===
3140
The following prerequisites must be satisfied for using any of the plugins provided here, unless otherwise noted:
32-
*PHP 5.0 or above
41+
*PHP <abbr title="Command Line Interface">CLI</abbr> 5.0 or above
3342
*Minecraft server 1.0 or later
34-
*''For minecraft_chunks.php, minecraft_entities.php, minecraft_lag.php, and minecraft_memory.php'': [http://bukkit.org CraftBukkit] version 1.0 or later '''and''' the [http://dev.bukkit.org/bukkit-plugins/lagmeter/ LagMeter plugin] for CraftBukkit
43+
*''For minecraft_chunks.php, minecraft_entities.php, minecraft_lag.php, and minecraft_memory.php'': [http://bukkit.org CraftBukkit] version 1.0 or later ('''instead of''' the vanilla Minecraft server) '''and''' the [http://dev.bukkit.org/bukkit-plugins/lagmeter/ LagMeter plugin] for CraftBukkit
3544
*RCON must be enabled in your Minecraft server configuration (instructions for doing this below)
3645
3746
== Downloading ==
47+
=== Directly ===
48+
These plugins can be downloaded in the archive format of your choice. See the bolded links [[#Git, Download, and Source Code|above]].
49+
50+
=== From Git ===
3851
These plugins can be found on the LizardNet Git repositories. Run:
3952

4053
<syntaxhighlight lang="bash">
41-
$ git clone https://gerrit.fastlizard4.org/r/p/munin-plugins/minecraft.git
54+
# Anonymous HTTPS clone
55+
git clone https://gerrit.fastlizard4.org/r/p/munin-plugins/minecraft.git
56+
# ...Or if you have an account on LizardNet Gerrit and have configured in it your SSH public key:
57+
git clone ssh://$GERRIT_USERNAME@gerrit.fastlizard4.org:1234/munin-plugins/minecraft.git
58+
</syntaxhighlight>
59+
60+
To automatically clone the Git repository to your computer.
61+
62+
These plugins can also be cloned from the '''read only''' GitHub mirror repository. Before you do this, though, please read the [[#GitHub Mirroring|GitHub Mirroring]] section above for important caveats.
63+
64+
<syntaxhighlight lang="bash">
65+
# Clone by SSH
66+
git clone git@github.com:LizardNet/munin-plugins-minecraft.git
67+
# Clone by HTTPS
68+
git clone https://github.com/LizardNet/munin-plugins-minecraft.git
4269
</syntaxhighlight>
4370

44-
To automatically clone the Git repository to your computer. For the rest of these instructions, we'll assume that you've cloned this repository into the folder <code>/home/''username''/munin-plugins</code>, so that your local repository root is <code>/home/''username''/munin-plugins/minecraft</code>.
71+
For the rest of these instructions, we'll assume that you've cloned this repository into the folder <code>/home/''username''/munin-plugins</code>, so that your local repository root is <code>/home/''username''/munin-plugins/minecraft</code>.
4572

4673
== Installation ==
4774
=== Enabling Minecraft RCON ===
@@ -59,6 +86,27 @@ Minecraft uses the Source RCON protocol for administrative communication, and th
5986
[INFO] Starting remote control listener
6087
[INFO] RCON running on 0.0.0.0:'''''portnumber'''''
6188
89+
=== (Required only for some components) Install and configure CraftBukkit and LagMeter ===
90+
If you play to use any of the plugins other than minecraft_users.php, you'll need to use the CraftBukkit server distribution to replace vanilla Minecraft and install the LagMeter plugin. Don't worry, installing CraftBukkit is quick and easy, as it's a drop-in replacement for the vanilla Minecraft server .jar. However, the CraftBukkit installation guide is beyond the scope of this document, so please see [http://wiki.bukkit.org/Setting_up_a_server the Bukkit wiki] for help with that.
91+
92+
If you already use CraftBukkit, or have finished installing it, now install (if you haven't already) the [http://dev.bukkit.org/bukkit-plugins/lagmeter/ LagMeter plugin] by navigating to the <code>plugins/</code> directory of the Minecraft server and typing this command:
93+
94+
<syntaxhighlight lang="bash">
95+
wget 'http://dev.bukkit.org/media/files/715/67/LagMeter.jar'
96+
</syntaxhighlight>
97+
98+
''Note: The link above may occasionally change, and if it does, go to the [http://dev.bukkit.org/bukkit-plugins/lagmeter/ plugin information page] to get the most up-to-date installation information.''
99+
100+
After you install LagMeter, restart your Minecraft server.
101+
102+
Now, regardless of whether you've just installed LagMeter or have previously had it installed, stop your CraftBukkit server as some configuration changes now need to be made in LagMeter:
103+
104+
*Open the <code>plugins/LagMeter/settings.yml</code> file in your CraftBukkit server directory
105+
*Ensure that <code>useAverage</code> under ''General'' at the top of the file is set to <code>'''true'''</code> (this is the default).
106+
*Go down to the ''Commands'' section of the config file
107+
*Set both <code>Commands.Lag.displayEntities</code> and <code>Commands.Lag.displayChunks</code> to <code>'''true'''</code> (changing the values from the default).
108+
*Save the file, exit your text editor, and start CraftBukkit
109+
62110
=== Install the Munin plugins ===
63111
This guide assumes that you already have Munin installed. If you need help installing Munin, please see [http://munin-monitoring.org/wiki/MuninInstallationLinux here].
64112

@@ -79,7 +127,7 @@ Now you need to configure Munin to connect to the server. Open the the ''munin-
79127
env.port '''''portnumber'''''
80128
env.password '''''password'''''
81129
82-
Using the same information you entered into your server.properties file above. Note that if Munin is running on the same machine as your Minecraft servers, ''hostname'' will be <code>localhost</code>.
130+
Using the same information you entered into your server.properties file above. In almost all circumstances, ''hostname'' will be <code>localhost</code> (the rare exception would be if Munin-Node is running on a different system from the Minecraft servers being monitored).
83131

84132
Once that is done, run (as root):
85133

@@ -132,7 +180,7 @@ Now we need to configure Munin with the RCON details. In this case, you would d
132180
env.password '''''password_srv3'''''
133181
env.customTitle Minecraft server srv3
134182
135-
Note that each Minecraft server has its own RCON connection configuration in the Munin config now (each server will have different RCON ports and ''should'' have different RCON passwords!), and that here the <code>env.customTitle</code> setting is used to make each server's set of graphs have identifying titles (though the <code>env.customTitle</code> setting is, of course, optional). The ''hostname''s will be <code>localhost</code> if the Minecraft servers are running on the same server as the Munin master instance.
183+
Note that each Minecraft server has its own RCON connection configuration in the Munin config now (each server will have different RCON ports and ''should'' have different RCON passwords!), and that here the <code>env.customTitle</code> setting is used to make each server's set of graphs have identifying titles (though the <code>env.customTitle</code> setting is, of course, optional). The ''hostname''s will be <code>localhost</code> if the Minecraft servers are running on the same server as the Munin-Node instance - i.e., almost always.
136184

137185
Now, just restart munin-node by running this command as root:
138186

0 commit comments

Comments
 (0)