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