Generic SNMP Error?

My SNMP sensors are not working but the config validates. However when I restart Home Assistant I get this in the logs and the sensors don’t work:

2019-01-06 00:16:14 ERROR (MainThread) [homeassistant.components.sensor.snmp] Please check the details in the configuration file
2019-01-06 00:16:18 ERROR (MainThread) [homeassistant.components.sensor.snmp] Please check the details in the configuration file
2019-01-06 00:16:22 ERROR (MainThread) [homeassistant.components.sensor.snmp] Please check the details in the configuration file
2019-01-06 00:16:26 ERROR (MainThread) [homeassistant.components.sensor.snmp] Please check the details in the configuration file
2019-01-06 00:16:31 ERROR (MainThread) [homeassistant.components.sensor.snmp] Please check the details in the configuration file
2019-01-06 00:16:35 ERROR (MainThread) [homeassistant.components.sensor.snmp] Please check the details in the configuration file

The config isn’t anything special. And as mentioned above it validates when checking it:

- platform: snmp
  host: 192.168.1.21
  baseoid: 1.3.6.1.4.1.2021.10.1.3.1
  community: public
  name: 'Media PC 1m Load'
- platform: snmp
  host: 192.168.1.21
  baseoid: 1.3.6.1.4.1.2021.10.1.3.2
  community: public
  name: 'Media PC 5m Load'
- platform: snmp
  host: 192.168.1.21
  baseoid: 1.3.6.1.4.1.2021.10.1.3.3
  community: public
  name: 'Media PC 15m Load'
- platform: snmp
  host: 192.168.1.21
  baseoid: 1.3.6.1.4.1.2021.9.1.9.1
  community: public
  name: 'Media PC Disk Usage'
  unit_of_measurement: '%'
- platform: snmp
  host: 192.168.1.21
  baseoid: .1.3.6.1.4.1.2021.9.1.10.1
  community: public
  name: 'Media PC Inodes Usage'
  unit_of_measurement: '%'
- platform: snmp
  name: 'Media PC Total RAM'
  host: 192.168.1.21
  baseoid: 1.3.6.1.2.1.25.2.3.1.5.6
  community: public
- platform: snmp
  name: 'Media PC Used RAM'
  host: 192.168.1.21
  baseoid: 1.3.6.1.2.1.25.2.3.1.6.6
  community: public

Any thoughts?

This is my config and it works try adding the version I seem to remember that caused me some problems but it was a long time ago.
- platform: snmp
version: 2c
scan_interval: 120
accept_errors: true
name: “Router WAN 1 RX”
host: 192.168.0.1
port: 161
community: !secret snmp_read
baseoid: 1.3.6.1.2.1.31.1.1.1.6.5
unit_of_measurement: ‘GB’
value_template: ‘{{((value | int) / 1000000000) | round(2)}}’

1 Like

Still doesn’t work. Also tried the “accept_errors: true” config but then everything shows as unknown:

I feel like I’m missing something really dumb…

So using a CLI sensor works around the issue…I guess:

#Media PC SNMP Sensors
- platform: command_line
  name: 'Media PC 1m Load'
  command: snmpget -v 2c -c public -Oqv 192.168.9.21 1.3.6.1.4.1.2021.10.1.3.1
- platform: command_line
  name: 'Media PC 5m Load'
  command: snmpget -v 2c -c public -Oqv 192.168.9.21 1.3.6.1.4.1.2021.10.1.3.2
- platform: command_line
  name: 'Media PC 15m Load'
  command: snmpget -v 2c -c public -Oqv 192.168.9.21 1.3.6.1.4.1.2021.10.1.3.3
1 Like