Snmp binding - Item never filled with data

I have one problem to SNMP binding with OH2.

Question for the /etc/snmp/snmptrapd.conf (and /etc/openhab2/services/snmp.cfg) entries: Is this only necessary for TRAP operations?
Question for the “GET” operation: Parameter is not documented. Can this parameter be interpreted like “update this item every milliseconds” or how is the GET operation scheduled?

My Item seems never to be used. This means I don’t find any log entries - even in debug mode:

String smp_mem_totl “%s” <it_server> (g_net_snmp_0001, g_typ_srvr) { “snmp=”<[] }

I also tried to use “Number smp_mem_totl “%d” …”


disableAuthorization yes
forward default udp:



2017-04-26 10:10:02.818 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query ‘smp_mem_totl’.
2017-04-26 10:10:03.323 [DEBUG] [org.openhab.binding.snmp ] - BundleEvent STARTING - org.openhab.binding.snmp
2017-04-26 10:10:03.329 [DEBUG] [.binding.snmp.internal.SnmpActivator] - SNMP binding has been started.
2017-04-26 10:10:03.334 [DEBUG] [org.openhab.binding.snmp ] - BundleEvent STARTED - org.openhab.binding.snmp
2017-04-26 10:10:03.342 [DEBUG] [org.openhab.binding.snmp ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.snmp.SnmpBindingProvider}={,,, service.bundleid=208, service.scope=bundle} - org.openhab.binding.snmp
2017-04-26 10:10:03.402 [DEBUG] [org.openhab.binding.snmp ] - ServiceEvent REGISTERED - {, org.osgi.service.event.EventHandler}={event.topics=openhab/*,,,,, service.bundleid=208, service.scope=bundle} - org.openhab.binding.snmp
2017-04-26 10:10:03.462 [DEBUG] [ab.binding.snmp.internal.SnmpBinding] - SNMP binding activated
2017-04-26 10:10:03.629 [DEBUG] [ab.binding.snmp.internal.SnmpBinding] - SNMP binding is listening on
2017-04-26 10:10:03.646 [INFO ] [b.core.service.AbstractActiveService] - SNMP Refresh Service has been started

So - what to check now?

Thanks in advance …

Have you done an SNMPWalk? That may shed some light on the matter for you. Also have you made sure that your strings match.

These commands are working well:
snmpget -v 1 -c public .
snmpwalk -v1 -c public
snmpget -v 1 -c public .
snmpget -v 1 -c public .
snmpget -v 1 -c public .

@kedvsk Where you able to get this to work? I also get ‘SNMP Refresh Service has been started’ on the log and snmpget -v 1 -c public also works, but the items never gets populated.

String AL_Status_NAS “NAS5 [%s]” (AL_Status) { snmp="<[]" }

Post your items using Code Fences

check this for troubleshooting: [SOLVED] SNMPget does not work

Solved my issue by tracing org.openhab.binding.snmp. It turns out the binding was not using the port setup in snmp.cfg. I ended up addding the port to the Items file.

1 Like

don’t confuse the 2 settings:

the port set in services/snmp.cfg is the listening port for your OH2 system
the port set in the items file is the port that remote systems use