Hi all, I think I have a problem with “telegraf agent”. When I start it, it gets stuck on these inputs and doesn’t go any further.
I! [inputs.modbus] Got 1 request(s) touching 6 holding registers for 3 fields (slave 1)
I! [inputs.modbus] Got 0 request(s) touching 0 inputs registers for 0 fields (slave 1)
I! [inputs.modbus] Got 0 request(s) touching 0 discrete registers for 0 fields (slave 1)
I! [inputs.modbus] Got 0 request(s) touching 0 coil registers for 0 fields (slave 1)
I am using the modbus TCP inputs plugin and the input configuration file is as follows:
[[inputs.modbus]]
name = "Analyzer 1"
timeout = "2s"
controller = "tcp://192.168.0.17:502"
transmission_mode = "TCP"
debug_connection = true
configuration_type = "request"
[[inputs.modbus.request]]
slave_id = 1
byte_order = "ABCD"
register = "holding"
fields = [
{ address = 2562, name = "V1",type = "FLOAT32"},
{ address = 2564, name = "V2",type = "FLOAT32"},
{ address = 2566, name = "V3", type = "FLOAT32"}
]
[inputs.modbus.request.tags]
slave_id = "1"
location = "AN. 1"
[inputs.modbus.workarounds]
close_connection_after_gather = true
The Telegraf global config:
# Telegraf Configuration
# Configuration for telegraf agent
[agent]
interval = "30s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "5s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "0s"
hostname = ""
omit_hostname = false
I tried with MBPoll and I can read the analyzer data.