Skip to content
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

MQTT_Consumer does not working in Telegraf 1.33.0 (git: HEAD@67902005) #16370

Open
mmsfla opened this issue Jan 5, 2025 · 1 comment
Open
Labels
bug unexpected problem or unintended behavior

Comments

@mmsfla
Copy link

mmsfla commented Jan 5, 2025

Relevant telegraf.conf

pi@raspberrypi3:~ $ cat /etc/telegraf/telegraf.d/mqtt-input.conf && cat /etc/telegraf/telegraf.d/influx-output.conf 
[[inputs.mqtt_consumer]]
  servers = ["tcp://127.0.0.1:1883"]
  topics = [ 
    "#", 
  ]
  data_format = "influx"
  
[[outputs.influxdb]]
  urls = ["http://127.0.0.1:8086"]
  database = "mppsolar"
  skip_database_creation = true
  username = "xxx removed xxx"
  password = "xxx removed xxx"

pi@raspberrypi3:~ $

Logs from Telegraf

pi@raspberrypi3:~ $ tail -f /var/log/telegraf/telegraf.log
2025-01-05T08:57:21Z I! Loaded secretstores:
2025-01-05T08:57:21Z I! Loaded outputs: influxdb
2025-01-05T08:57:21Z I! Tags enabled: host=raspberrypi3
2025-01-05T08:57:21Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"raspberrypi3", Flush Interval:10s
2025-01-05T08:57:21Z D! [agent] Initializing plugins
2025-01-05T08:57:21Z D! [agent] Connecting outputs
2025-01-05T08:57:21Z D! [agent] Attempting connection to [outputs.influxdb]
2025-01-05T08:57:21Z D! [agent] Successfully connected to outputs.influxdb
2025-01-05T08:57:21Z D! [agent] Starting service inputs
2025-01-05T08:57:21Z I! [inputs.mqtt_consumer] Connected [tcp://127.0.0.1:1883]
2025-01-05T08:57:31Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
2025-01-05T08:57:41Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics
--------------
tcp-dump: 
pi@raspberrypi3:~ $ sudo tcpdump -i lo | grep 8086
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes
09:41:35.808616 IP localhost.44359 > localhost.39098: Flags [P.], seq 406:407, ack 1, win 512, options [nop,nop,TS val 2788121118 ecr 2788121118], length 1
09:43:25.808630 IP localhost.47071 > localhost.1883: Flags [P.], seq 14991:15039, ack 5, win 512, options [nop,nop,TS val 2788231118 ecr 2788231118], length 48
09:45:43.880860 IP localhost.1883 > localhost.48711: Flags [.], ack 24468, win 744, options [nop,nop,TS val 2788369191 ecr 2788369191], length 0
09:48:50.438086 IP localhost.43900 > localhost.33139: Flags [.], ack 565, win 512, options [nop,nop,TS val 2788555748 ecr 2788555748], length 0
^C23948 packets captured
47896 packets received by filter
0 packets dropped by kernel

System info

Telegraf 1.33.0 on RaspianOS Bookworm

Docker

No response

Steps to reproduce

Complete error analysis and solution attempts:
https://github-com.translate.goog/jblance/mpp-solar/discussions/523?_x_tr_sl=auto&_x_tr_tl=de&_x_tr_hl=de

Expected behavior

none

Actual behavior

none

Additional info

none

@mmsfla mmsfla added the bug unexpected problem or unintended behavior label Jan 5, 2025
@mmsfla
Copy link
Author

mmsfla commented Jan 5, 2025

Sorry, here the englisch url to my error analysis: jblance/mpp-solar#523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant