thingsboard-gateway icon indicating copy to clipboard operation
thingsboard-gateway copied to clipboard

[BUG] snmp connector is not polling the device

Open hansju-11 opened this issue 2 years ago • 2 comments

I did: 1.) activate snmp connector in tb_gateway.yaml ...

name: SNMP Connector
type: snmp
configuration: snmp.json

.... 2.) set snmp.json

{ "devices": [ { "deviceName": "NAS", "deviceType": "snmp", "ip": "192.168.101.222", "port": 161, "pollPeriod": 60, "community": "b-public", "attributes": [ { "key": "ReceivedFromGet", "method": "get", "oid": "1.3.6.1.2.1.1.1.0", "timeout": 6 }, "telemetry": [ { "key": "Temp", "community": "b-public", "method": "get", "oid": ".1.3.6.1.4.1.6574.1.2.0" }, { "key": "Update-Status", "community": "b-public", "method": "get", "oid": ".1.3.6.1.4.1.6574.1.5.4.0", "timeout": 6 } ], "attributeUpdateRequests": [ { "attributeFilter": "dataToSet", "method": "set", "oid": "1.3.6.1.2.1.1.1.0", "timeout": 6 } ], "serverSideRpcRequests": [ { "requestFilter": "setData", "method": "set", "oid": "1.3.6.1.2.1.1.1.0" } ] } ] }

When I start thingsboard-gateway I did not get any error in the /var/log/thingsboard-gateway/ If I check network communication with tcpdump host 192.168.101.222 I did not get any request from thingsboard-gateway host to snmp device.

OS: "Ubuntu 20.04.5 LTS Thingsboard gateway 3.1.1 thingsboard 3.3.4.1

hansju-11 avatar Sep 18 '22 17:09 hansju-11

Hi @hansju-11, make sure that the log level is DEBUG in logs.conf file (replace all INFO to DEBUG if it is not) and send the logs.

samson0v avatar Sep 19 '22 07:09 samson0v

Hello @samson0v see the logfiles thingsboard-gateway.tar.gz

hansju-11 avatar Sep 19 '22 14:09 hansju-11

@hansju-11 from the logs files I see only MQTT Connector logs, maybe it will be better if you send a screenshot of the logs when the gateway starts to poll SNMP devices.

samson0v avatar Oct 14 '22 08:10 samson0v

@hansju-11 any updates?

samson0v avatar Oct 19 '22 12:10 samson0v

Hello Vitalii,I'm on vacation. I will check it next week.Kind regardsHans-Jürgen --Diese Nachricht wurde von meinem Mobiltelefon gesendet.Am 19.10.22, 14:45 schrieb Vitalii Bidochka @.***>:

@hansju-11 any updates? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

hansju-11 avatar Oct 19 '22 13:10 hansju-11

Hello Vitalii,

I did an wireshark trace, but no snmp connection was made. It looks like that their is no thread/task created in thingsboard to do the snmp.

1.) Can I check, if the config file has any problems

2.) is read by thingsboard

3.) if puresnmp is started

 

kind regards

Hans-Jürgen

 

 

   

Gesendet: Mittwoch, 19. Oktober 2022 um 14:45 Uhr Von: "Vitalii Bidochka" @.> An: "thingsboard/thingsboard-gateway" @.> Cc: "hansju-11" @.>, "Mention" @.> Betreff: Re: [thingsboard/thingsboard-gateway] [BUG] snmp connector is not polling the device (Issue #924)

 

@hansju-11 any updates?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

hansju-11 avatar Oct 26 '22 19:10 hansju-11