on domoticz, to monitor a HP 8100 printer, the plugin return some errors:
(SNMP) 'onHeartbeat' failed 'PyAsn1Error'.
2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 90 in '/home/pthomas/domoticz/plugins/SNMPreader/plugin.py', function onHeartbeat
2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 156 in '/home/pthomas/domoticz/plugins/SNMPreader/plugin.py', function getSNMPvalue
2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 183 in '/usr/lib/python3/dist-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py', function getCmd
2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 111 in '/usr/lib/python3/dist-packages/pysnmp/hlapi/asyncore/sync/cmdgen.py', function getCmd
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 129 in '/usr/lib/python3/dist-packages/pysnmp/hlapi/asyncore/cmdgen.py', function getCmd
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 39 in '/usr/lib/python3/dist-packages/pysnmp/hlapi/varbinds.py', function makeVarBinds
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 847 in '/usr/lib/python3/dist-packages/pysnmp/smi/rfc1902.py', function resolveWithMib
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 421 in '/usr/lib/python3/dist-packages/pysnmp/smi/rfc1902.py', function resolveWithMib
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 206 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getNodeNameByOid
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 191 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel
2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 1137 in '/usr/lib/python3/dist-packages/pyasn1/type/univ.py', function add
2020-10-03 13:05:45.322 Error: (SNMP) ----> Line 349 in '/usr/lib/python3/dist-packages/pyasn1/type/base.py', function clone
2020-10-03 13:05:45.322 Error: (SNMP) ----> Line 240 in '/usr/lib/python3/dist-packages/pyasn1/type/base.py', function init__
2020-10-03 13:05:45.322 Error: (SNMP) ----> Line 1205 in '/usr/lib/python3/dist-packages/pyasn1/type/univ.py', function prettyIn
however the start of the script execution seems normal
Hi,
on domoticz, to monitor a HP 8100 printer, the plugin return some errors:
(SNMP) 'onHeartbeat' failed 'PyAsn1Error'. 2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 90 in '/home/pthomas/domoticz/plugins/SNMPreader/plugin.py', function onHeartbeat 2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 156 in '/home/pthomas/domoticz/plugins/SNMPreader/plugin.py', function getSNMPvalue 2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 183 in '/usr/lib/python3/dist-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py', function getCmd 2020-10-03 13:05:45.319 Error: (SNMP) ----> Line 111 in '/usr/lib/python3/dist-packages/pysnmp/hlapi/asyncore/sync/cmdgen.py', function getCmd 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 129 in '/usr/lib/python3/dist-packages/pysnmp/hlapi/asyncore/cmdgen.py', function getCmd 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 39 in '/usr/lib/python3/dist-packages/pysnmp/hlapi/varbinds.py', function makeVarBinds 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 847 in '/usr/lib/python3/dist-packages/pysnmp/smi/rfc1902.py', function resolveWithMib 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 421 in '/usr/lib/python3/dist-packages/pysnmp/smi/rfc1902.py', function resolveWithMib 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 206 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getNodeNameByOid 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.320 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 188 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 191 in '/usr/lib/python3/dist-packages/pysnmp/smi/view.py', function getOidLabel 2020-10-03 13:05:45.321 Error: (SNMP) ----> Line 1137 in '/usr/lib/python3/dist-packages/pyasn1/type/univ.py', function add 2020-10-03 13:05:45.322 Error: (SNMP) ----> Line 349 in '/usr/lib/python3/dist-packages/pyasn1/type/base.py', function clone 2020-10-03 13:05:45.322 Error: (SNMP) ----> Line 240 in '/usr/lib/python3/dist-packages/pyasn1/type/base.py', function init__ 2020-10-03 13:05:45.322 Error: (SNMP) ----> Line 1205 in '/usr/lib/python3/dist-packages/pyasn1/type/univ.py', function prettyIn
however the start of the script execution seems normal
2020-10-03 13:08:50.422 (SNMP) 'HardwareID':'13' 2020-10-03 13:08:50.422 (SNMP) 'HomeFolder':'/home/pthomas/domoticz/plugins/SNMPreader/' 2020-10-03 13:08:50.423 (SNMP) 'StartupFolder':'/home/pthomas/domoticz/' 2020-10-03 13:08:50.423 (SNMP) 'UserDataFolder':'/home/pthomas/domoticz/' 2020-10-03 13:08:50.423 (SNMP) 'Database':'/home/pthomas/domoticz/domoticz.db' 2020-10-03 13:08:50.424 (SNMP) 'Language':'fr' 2020-10-03 13:08:50.424 (SNMP) 'Version':'1.1.0' 2020-10-03 13:08:50.427 (SNMP) 'Author':'ycahome' 2020-10-03 13:08:50.427 (SNMP) 'Name':'SNMP' 2020-10-03 13:08:50.428 (SNMP) 'Address':'192.168.1.13' 2020-10-03 13:08:50.428 (SNMP) 'Port':'0' 2020-10-03 13:08:50.428 (SNMP) 'Key':'SNMPreader' 2020-10-03 13:08:50.429 (SNMP) 'Mode1':'3.6.1.2.1.1.3.0' 2020-10-03 13:08:50.429 (SNMP) 'Mode2':'public' 2020-10-03 13:08:50.429 (SNMP) 'Mode3':'Text' 2020-10-03 13:08:50.429 (SNMP) 'Mode4':'60' 2020-10-03 13:08:50.430 (SNMP) 'Mode6':'Debug' 2020-10-03 13:08:50.430 (SNMP) 'DomoticzVersion':'2020.2 (build 12442)' 2020-10-03 13:08:50.430 (SNMP) 'DomoticzHash':'9834d993a-modified' 2020-10-03 13:08:50.430 (SNMP) 'DomoticzBuildTime':'2020-10-02 17:21:24' 2020-10-03 13:08:50.431 (SNMP) Device: 1 - ID: 237, Name: 'SNMP - (SNMP)', nValue: 0, sValue: 'None' 2020-10-03 13:08:50.432 (SNMP) Device ID: '237' 2020-10-03 13:08:50.432 (SNMP) Device Name: 'SNMP - (SNMP)' 2020-10-03 13:08:50.432 (SNMP) Device nValue: 0 2020-10-03 13:08:50.433 (SNMP) Device sValue: 'None' 2020-10-03 13:08:50.404 Status: (SNMP) Initialized version 1.1.0, author 'ycahome'
the python version is not good?
thank for your help
Pierre