Skip to content

Commit

Permalink
Fix frdmn's minecraft plugins
Browse files Browse the repository at this point in the history
- Get rid of duplicate plugins in "jsonapi/" folder
- Rename
- Reference to original GitHub repo
  • Loading branch information
frdmn committed Sep 6, 2014
1 parent 0743e6e commit 92abf3e
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 841 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
*
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

/**
Expand All @@ -31,7 +32,7 @@ $port = 20059;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / JSONAPI - players online
graph_category bukkit_jsonapi
graph_category bukkit
graph_vlabel players
graph_args --base 1000 -l 0
players.type GAUGE
Expand All @@ -52,4 +53,4 @@ if ($result['result'] == 'success'){
// Print values
print('players.value ' . $result['success'] . "\n");
}
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
*
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

/**
Expand All @@ -31,7 +32,7 @@ $port = 20059;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / JSONAPI - RAM usage
graph_category bukkit_jsonapi
graph_category bukkit
graph_vlabel RAM usage in GB
graph_args --base 1024 -l 0
total.label total
Expand Down Expand Up @@ -61,4 +62,4 @@ if ($result['result'] == 'success'){
print('used.value ' . round($result['success'][0]['success']/1000,2) . "\n");
print('total.value ' . round($result['success'][1]['success']/1000,2) . "\n");
}
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
*
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

/**
Expand All @@ -31,7 +32,7 @@ $port = 20059;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / JSONAPI - ticks per second (TPS)
graph_category bukkit_jsonapi
graph_category bukkit
graph_vlabel ticks per second
graph_args --base 1000 -l 0
tps.type GAUGE
Expand All @@ -52,4 +53,4 @@ if ($result['result'] == 'success'){
// Print values
print('tps.value ' . round($result['success']['clockRate'], 2) . "\n");
}
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
*
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

/**
Expand All @@ -32,7 +33,7 @@ $port = 3306;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / Statistician - hostile mob kills per day
graph_category bukkit_sql_kills
graph_category bukkit
graph_vlabel hostile mob kills per day
graph_args --base 1000 -l 0
blaze.type GAUGE
Expand Down Expand Up @@ -158,4 +159,4 @@ if ($result = mysqli_query($connection, "SELECT id FROM killchart WHERE time > $

## Close connection
mysqli_close($connection);
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
*
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

/**
Expand All @@ -32,7 +33,7 @@ $port = 3306;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / Statistician - neutral mob kills per day
graph_category bukkit_sql_kills
graph_category bukkit
graph_vlabel neutral mob kills per day
graph_args --base 1000 -l 0
enderman.type GAUGE
Expand Down Expand Up @@ -86,4 +87,4 @@ if ($result = mysqli_query($connection, "SELECT id FROM killchart WHERE time > $

// Close connection
mysqli_close($connection);
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
*
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

/**
Expand All @@ -32,7 +33,7 @@ $port = 3306;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / Statistician - passive mob kills per day
graph_category bukkit_sql_kills
graph_category bukkit
graph_vlabel passive mob kills per day
graph_args --base 1000 -l 0
bat.type GAUGE
Expand Down Expand Up @@ -126,4 +127,4 @@ if ($result = mysqli_query($connection, "SELECT id FROM killchart WHERE time > $

// Close connection
mysqli_close($connection);
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

Expand All @@ -32,7 +33,7 @@ $port = 3306;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / Statistician - new players per day
graph_category bukkit_sql
graph_category bukkit
graph_vlabel new players per day
graph_args --base 1000 -l 0
players.type GAUGE
Expand Down Expand Up @@ -62,4 +63,4 @@ if ($result = mysqli_query($connection, "SELECT player_name FROM players WHERE f

// Close connection
mysqli_close($connection);
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* http://s.frd.mn/XJsryR
*
* Author: Jonas Friedmann (http://frd.mn)
* GitHub: https://github.com/yeahwhat-mc/munin-bukkit-plugins
*
*/

Expand All @@ -33,7 +34,7 @@ $port = 3306;
if ((count($argv) > 1) && ($argv[1] == 'config'))
{
print("graph_title Bukkit / Ultrabans - shame per day
graph_category bukkit_sql
graph_category bukkit
graph_vlabel amount of shame per day
graph_args --base 1000 -l 0
unban.type GAUGE
Expand Down Expand Up @@ -137,4 +138,4 @@ print('mute.value ' . $mutes . "\n");

// Close connection
mysqli_close($connection);
?>
?>
55 changes: 0 additions & 55 deletions plugins/minecraft/jsonapi/README.md

This file was deleted.

57 changes: 0 additions & 57 deletions plugins/minecraft/minecraft-jsonapi-players

This file was deleted.

66 changes: 0 additions & 66 deletions plugins/minecraft/minecraft-jsonapi-ramusage

This file was deleted.

Loading

0 comments on commit 92abf3e

Please sign in to comment.