-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minecraft input plugin isn't loading metrics #6287
Comments
I think rcon must be setup correctly because there are no errors, but can you check the minecraft log file for something like this:
When you start Telegraf there should be a log message for the new connection:
If that looks okay, can you run these commands using one of your actual players and attach the output?
|
I see a connection attempt when I restart telegraf:
I only see this once though. I do not see it everytime telegraf should be collecting metrics. In game I issue this:
I get a response saying:
(this is a new server set up, so only me so far) In game I issue this:
I get a response showing my scores (just the demo
|
Telegraf does reuse the connection each interval, so it's normal to see only a single connection. All the output looks as expected too. Would you be able to do a packet capture with
You may want to reset the rcon password to a temporary password first, because it will be visible in the packet capture. |
That didn't return anything when I run
I do get a pcap when I run the python rcon script though. I can attach that it if help, but I am assuming it doesn't right now. Could it be related to the tags?
That is the same thing as I have for other metrics like this (and they work).
|
I'm surprised nothing is picked up since we know Telegraf is at least making the connection. Perhaps it will be easier if you run this build of Telegraf with extra logging added: Run it with the
|
I am sorry. I'm not sure how to best install that version without messing up the 1.11 version I have currently installed. |
I think the standalone tar package will be best for this, this way you don't need to replace your existing setup:
|
Thanks for those instructions. Output with 1.12:
I issued the same command in game:
It returns the same result as before:
I also don't see anything with the tcpdump. |
You mentioned a python rcon script earlier, which one are you using and can you run Since you have a few mods, are you using Spigot? |
I am using mcrcon In the example provided in their docs, they have the command to run like this:
This returns the same Unknown command error above. However, removing the leading slash works as expected.
I am using spigot.
I just followed the instructions to get BuildTools and then built is using My full mcrcon test script:
|
Must be a difference between Spigot and the Vanilla server, I was able to replicate and it looks like the fix is as easy as just removing the If this works for you then we can add the fix to 1.11.5 which should be released on Tuesday. |
It works! Thank you for helping figure out the issue and for planning it's release so quickly! |
Relevant telegraf.conf:
System info:
Telegraf version: 1.11.4-1 (installed via apt-get)
Minecraft server: 1.14.4
Only plugins installed on minecraft are EssentialsX and Dynmap.
Rcon is enabled. Correct password, port and host are provided.
Scoreboard is set up and objectives can be seen in game.
Steps to reproduce:
Expected behavior:
Minecraft measurements would be sent to influxdb like all my other metrics. None of those metrics are failing unexpectedly.
Actual behavior:
No minecraft measurements are sent.
Additional info:
Minecraft plugin is listed as being loaded in the telegraf log:
Doing a test run of telegraf doesn't show any minecraft metrics:
(Other filtered metrics product a result)
No errors are appearing in
All of my other metrics are loading as expected and are using
[inputs.*.tags]
The text was updated successfully, but these errors were encountered: