-
Notifications
You must be signed in to change notification settings - Fork 844
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
[BUG] SNMP connector does not send all telemetry #819
Comments
Hi @farmerkz, we will investigate your problem and let you know about the results. |
Hello @farmerkz, sorry for posting to this ticket. From your post, looks like getting snmp telemetry is working for your, so hope you can share some insights. I am new to Thingsboard and also try to get snmp from telemetry from local on premise device. I am running an iot-gateway locally from docker image and try to send telemetry data to my https://thingsboard.cloud instance. I don't know if this configuration is supported as I always get mqtt connection error and snmp time out. Are you running a local Thingsboard instance or cloud? |
Hi @aedahh ! snmp.json:
|
I think this issue/bug is not really solved, it is only fixed by a configuration workaround. The snmp.json from @farmerkz first post:
should be possible because the element "telemetry" is an array, and it makes no sense to create multiple device entries to transfer multiple oids from one device. The move of the following code snipped (see: file snmp_connector.py) out of the loop leads to the problem that only the last element of the array will be transmitted to the platform:
After moving the code snipped again in to the loop all values will be transmitted but then I got the following error: |ERROR| - [tb_gateway_service.py] - tb_gateway_service - __send_to_storage - 861 - 'str' object has no attribute 'get'" The error occures in the following section of function validate_converted_data(data) in file tb_utility.py:
This should be fixed. |
Hey @farmerkz, do you know how can I use SNMP in the cloud version of thingsboard not the one installed locally? Thanks. |
Describe the bug
My SNMP connector config:
On thingsboard I only get the second telemetry value.
Connector name (If bug in the some connector):
SNMP Connector
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: