Nav version 3.10.2 Django debug is intentionally turned on
We need to monitor uptime on our printers and add them to NAV in category OTHER.
When we add snmp-enabled SafeCom controllers (http://www.betasoft.co.uk/safeco m/safecom_ext_controller.htm) seeddb barfs while talking snmp to the device with
ValueConstraintError at /seeddb/netbox/edit/1691/
SingleValueConstraint for 'Version': value 0 not within allowed values: [1]
Request Method: POST Request URL: https://nav.uit.no/seeddb/netbox/edit/1691/ Django Version: 1.3.1 Exception Type: ValueConstraintError Exception Value:
SingleValueConstraint for 'Version': value 0 not within allowed values: [1]
Exception Location: /usr/local/lib/python2.7/site-packages/pysnmp/asn1/constra ints.py in __call__, line 40 Python Executable: /usr/local/bin/python Python Version: 2.7.2 Python Path:
['/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/local/lib/python2.7/site-packages/Cheetah-2.4.4-py2.7-freebsd-8.2-RELEAS E-p5-amd64.egg', '/usr/local/lib/python2.7/site-packages/zope.interface-3.8.0-py2.7-freebsd-8.2 -RELEASE-p5-amd64.egg', '/usr/local/lib/python2.7/site-packages/pyasn1-0.1.2-py2.7.egg', '/usr/local/lib/python2.7/site-packages/python_ldap-2.4.7-py2.7-freebsd-8.2-RE LEASE-p5-amd64.egg', '/usr/local/nav/lib/python', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-freebsd8', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages']
Traceback: File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/nav/lib/python/nav/web/seeddb/page/netbox/edit.py" in netbox_edit 49. if netbox_form.is_valid(): File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in is_valid 121. return self.is_bound and not bool(self.errors) File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in _get_errors 112. self.full_clean() File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in full_clean 268. self._clean_form() File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in _clean_form 296. self.cleaned_data = self.clean() File "/usr/local/nav/lib/python/nav/web/seeddb/page/netbox/forms.py" in clean 81. self._check_ro_community(ip, ro_community, cat) File "/usr/local/nav/lib/python/nav/web/seeddb/page/netbox/forms.py" in _check_ro_community 106. version = self.get_snmp_version(ip, ro_community) File "/usr/local/nav/lib/python/nav/web/seeddb/page/netbox/forms.py" in get_snmp_version 135. snmp.get(sysobjectid) File "/usr/local/nav/lib/python/nav/Snmp/pysnmp_se.py" in get 99. rsp.berDecode(answer) File "/usr/local/lib/python2.7/site-packages/pysnmp/asn1/encoding/ber/base.py" in berDecode 296. input = self[key].berDecode(input) File "/usr/local/lib/python2.7/site-packages/pysnmp/asn1/encoding/ber/base.py" in berDecode 202. self._setRawAsn1Value(value) File "/usr/local/lib/python2.7/site-packages/pysnmp/asn1/base.py" in _setRawAsn1Value 169. self._subtype_constraint(value) File "/usr/local/lib/python2.7/site-packages/pysnmp/asn1/base.py" in _subtype_constraint 78. c( self, value ) File "/usr/local/lib/python2.7/site-packages/pysnmp/asn1/constraints.py" in __call__ 40. self.values.keys(),
Exception Type: ValueConstraintError at /seeddb/netbox/edit/1691/ Exception Value: SingleValueConstraint for 'Version': value 0 not within allowed values: [1]
It is quite possible that the SNMP-implementation on these devices are odd, but seeddb should be able to cope in a more elegant way.
Attached is the output of snmpwalk of the device without any fancy flags. Let me know if you need more info.
--Ingeborg