telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

Telegraf OPC UA listener input plugin never starts when Bad Quality in one variable

Open alexmc1510 opened this issue 1 year ago • 5 comments

Relevant telegraf.conf

[[inputs.opcua_listener.group]]
  default_tags = {site = "CAD", groups = "Vision"}
  nodes = [
  {name="IsChessBackLight", namespace="4", identifier_type="s", identifier="T1_PLC.Generic.Vision_Chess_BackLight"},
  {name="IsLaserCross", namespace="4", identifier_type="s", identifier="T1_PLC.Generic.Vision_Laser_Cross"},
  ]

Logs from Telegraf

2023-05-21T10:55:20Z D! [inputs.opcua_listener] Connected to OPC UA Server
2023-05-21T10:55:20Z D! [inputs.opcua_listener] Creating OPC UA subscription
2023-05-21T10:55:20Z D! [inputs.opcua_listener] Subscribed with subscription ID 840967151
2023-05-21T10:55:20Z D! [inputs.opcua_listener] Monitoring items
2023-05-21T10:55:20Z E! [telegraf] Error running agent: starting input inputs.opcua_listener: creating monitored item failed with status code: The node id refers to a node that does not exist in the server address space. StatusBadNodeIDUnknown (0x80340000)

System info

Telegraf 1.26 running in Docker

Docker

No response

Steps to reproduce

  1. Connect to an OPC UA server that does not contains or contains with Bad Quality one of the configured variables in the telegraf plugin.

Expected behavior

The plugin should connect normally to all the variables and record the error in the Quality tag in order to debug the issue in the server.

Actual behavior

Now, if you configure hundreds of variables, it is very difficult to debug and the plugin never starts. You never receives data for any variable, Good or Bad.

Additional info

No response

alexmc1510 avatar May 21 '23 11:05 alexmc1510