-
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
OPC-UA input plugin collection interval changes after bad quality #10665
Comments
To do: Need to determine what does the Other Notes:
|
@magiconair Would you have any insight specifically into the
|
@sjwang90 this is outside of my area of contribution, sorry. I have no experience with opcua. 🙇 |
Oops sorry tagged the wrong person!
|
What setting do you use for |
I do not believe the user has it set. Is there a suggested value? I have wondered about the interval being 1 second as well if there is any delay and if that is causing issues. |
The default value is |
This is what started showing up in the logs:
The user also said that anything with a timeout was under 4 seconds and Telegraf didn't appear to get the data. Does this mean the device may not be able to be queried every second? |
What I understand from the comments on the Python bug mentioned by sjwang90 is that the kepware server does not return after 3-4 seconds when a bad quality node is part of the registered read request. Currently we do not support subscriptions or events which is the solution mentioned (#8083). For now, a hacky work-around could be to split the node groups between several opcua input plugins. Only the plugin with the bad read request would drop a few values while the others can continue at the once per second rate. |
Is this the result of the sensor itself having a bad value? Is there something the OPC UA client should do to avoid the delay?
I agree, without an event-based plugin, this does seem like the right way forward for now. |
I indeed think the sensor itself is assigned a bad quality. If the server takes this long to reply there is not much we can do as a client. A Wireshark capture or similar could provide definitive evidence that the server is causing the delay. |
@sjwang90 not really. This error vaguely rings a bell with the Kepware server depending on how it is hooked up to the backend data collection but it has been a looong time I've played with Kepware. Try to use the |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.21, Operating system: Windows Server 2019, Memory Available (GB): 6GB CPU cores Available: unclear, but at least 2 Disks (HDD/SSD/etc..): 50GB, OPC-UA Server: Kepware KEPServer EX 5.21
Docker
No response
Steps to reproduce
status not OK for node current: Bad (0x80000000)
error...
Expected behavior
Running with an agent interval of 1s. Everything works fine until one or more nodes comes back with a
BAD Quality (0x80000000)
value. Once a BAD Quality node is observed, the acquisition interval changes to 3s.Actual behavior
Acquisition should remain at 1s as specified in agent interval
Additional info
No response
The text was updated successfully, but these errors were encountered: