Giter Site home page Giter Site logo

munin-plugins's Introduction

Some munin plugins I wrote. Still moving from being a Minecraft specific repo, so if you see any references to Minecraft where they don't belong, let me know (or fix it and pull request)

Install

  1. Place these files in your munin plugins directory then symlink them to the active plugins directory, or whatever your distro does. On Ubuntu, place them in /usr/share/munin/plugins/ then symlink them in /etc/munin/plugins/.

  2. Edit your munin-node file (on Ubuntu this is located in /etc/munin/plugin-conf.d/munin-node) and add the appropriate information. See the README's in each subdirectory for more specific infomation.

  3. Restart munin-node and your server should start reporting stats.

munin-plugins's People

Contributors

eisensheng avatar jave avatar thefinn93 avatar waaghals avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

munin-plugins's Issues

"java.io.IOException: Bad packet id 28" Error from MC server

While trying to set up the plugins I ran into the following problem. In the Minecraft server's log I get the following error when the munin plugins try to connect:

2013-03-12 13:00:08 [INFO] [STDERR] java.io.IOException: Bad packet id 28
2013-03-12 13:00:08 [INFO] [STDERR]     at ef.a(Packet.java:151)
2013-03-12 13:00:08 [INFO] [STDERR]     at cg.i(TcpConnection.java:324)
2013-03-12 13:00:08 [INFO] [STDERR]     at cg.c(TcpConnection.java:544)
2013-03-12 13:00:08 [INFO] [STDERR]     at ch.run(SourceFile:93)
2013-03-12 13:00:08 [INFO] [Minecraft] /192.26.174.248:53622 lost connection

the munin logs on the other hand show the following error:

2013/03/12-13:00:09 [20775] Error output from minecraft_memory_ulti:
2013/03/12-13:00:09 [20775]     Traceback (most recent call last):
2013/03/12-13:00:09 [20775]       File "/etc/munin/plugins/minecraft_memory_ulti", line 69, in <module>
2013/03/12-13:00:09 [20775]         r = MCRcon(host, port, pwd)
2013/03/12-13:00:09 [20775]       File "/etc/munin/plugins/minecraft_memory_ulti", line 25, in __init__
2013/03/12-13:00:09 [20775]         self.send_real(3, password)
2013/03/12-13:00:09 [20775]       File "/etc/munin/plugins/minecraft_memory_ulti", line 46, in send_real
2013/03/12-13:00:09 [20775]         tmp_len, tmp_req_id, tmp_type = struct.unpack('<iii', self.s.recv(12))
2013/03/12-13:00:09 [20775]     struct.error: unpack requires a string argument of length 12
2013/03/12-13:00:09 [20775] Service 'minecraft_memory_ulti' exited with status 1/0.
2013/03/12-13:00:09 [20775] Error output from minecraft_memory_ulti:
2013/03/12-13:00:09 [20775]     Traceback (most recent call last):
2013/03/12-13:00:09 [20775]       File "/etc/munin/plugins/minecraft_memory_ulti", line 69, in <module>
2013/03/12-13:00:09 [20775]         r = MCRcon(host, port, pwd)
2013/03/12-13:00:09 [20775]       File "/etc/munin/plugins/minecraft_memory_ulti", line 25, in __init__
2013/03/12-13:00:09 [20775]         self.send_real(3, password)
2013/03/12-13:00:09 [20775]       File "/etc/munin/plugins/minecraft_memory_ulti", line 46, in send_real
2013/03/12-13:00:09 [20775]         tmp_len, tmp_req_id, tmp_type = struct.unpack('<iii', self.s.recv(12))
2013/03/12-13:00:09 [20775]     struct.error: unpack requires a string argument of length 12
2013/03/12-13:00:09 [20775] Service 'minecraft_memory_ulti' exited with status 1/0.

I double checked the the config and the rcon setting but everything looks right and since the munin side manages to contact the server at least the port and ip settings must be working.

list number of online users

it would be nice to be able to graph the number of online users.

(I can perhaps provide a patch if you dont happen to have the feature somwhere already)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.