Sep 24, 2010 10:07 AM
error with zenoss.snmp.NewDeviceMap on 3
-
Like (0)
Hi,
Since upgrading to version 3 every night our SNMP devices get the below error
Problem while executing plugin zenoss.snmp.NewDeviceMap
Traceback (most recent call last): File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 611, in processClient results = plugin.preprocess(results, self.log) File "/opt/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess getdata = self.snmpGetMap.mapdata(getdata) File "/opt/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata data[self.oidmap[oid]] = value KeyError: (1, 3, 6, 1, 2, 1, 1, 2, 0)
Anyone know how to fix this?
Thanks,
~Jet
I was wrong about it happening at night. It actually happens all through out the day at what seem to be random times.
Am I the only one seeing this issue?
I'm getting the same issue on 3.1.0, newly upgraded. Is there any fix or work around available?
-H
probably need to update the catalogue and reindex devices/components
I've tried that, with no luck. The peculiar thing is that the message does not occur every time for every device, and it simply does not repeat on a manual model run.
Got the same error.
Message:
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 611, in processClient
results = plugin.preprocess(results, self.log)
File "/opt/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess
getdata = self.snmpGetMap.mapdata(getdata)
File "/opt/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata
data[self.oidmap[oid]] = value
KeyError: (1, 3, 6, 1, 2, 1, 1, 1, 0)
And another message:
Component:
Severity: Error
Time: 2011/04/20 21:03:26.000
Message:
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 613, in processClient
datamaps = plugin.process(device, results, self.log)
File "/opt/zenoss/Products/DataCollector/plugins/zenoss/snmp/NewDeviceMap.py", line 81, in process
if om.snmpOid:
AttributeError: ObjectMap instance has no attribute 'snmpOid'
Probably related to unclean shutdown of modeler (3 of them got stuck for 2 days, kill -9'ed).
Update: reindex()'ed, commit()'ed, still getting occasional errors on modeling:
2011-04-21 14:36:12,696 INFO zen.ZenModeler: No WMI plugins found for xxx
2011-04-21 14:36:12,699 INFO zen.ZenModeler: No Python plugins found for xxx
2011-04-21 14:36:12,703 INFO zen.ZenModeler: No command plugins found for xxx
2011-04-21 14:36:12,707 INFO zen.ZenModeler: SNMP collection device xxx
2011-04-21 14:36:12,707 INFO zen.ZenModeler: plugins: zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, HPDeviceMap, DellDeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap, zenoss.snmp.IpServiceMap, ze
noss.snmp.HRFileSystemMap, zenoss.snmp.HRSWRunMap, zenoss.snmp.UCDHardDiskMap, HPCPUMap, DellCPUMap, DellPCIMap
2011-04-21 14:36:12,735 INFO zen.ZenModeler: No portscan plugins found for xxx
2011-04-21 14:36:13,313 INFO zen.SnmpClient: snmp client finished collection for xxx
2011-04-21 14:36:13,314 INFO zen.ZenModeler: Processing zenoss.snmp.NewDeviceMap for device xxx
2011-04-21 14:36:13,314 ERROR zen.ZenModeler: Problem while executing plugin zenoss.snmp.NewDeviceMap
2011-04-21 14:36:13,320 ERROR zen.ZenModeler: Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 613, in processClient
datamaps = plugin.process(device, results, self.log)
File "/opt/zenoss/Products/DataCollector/plugins/zenoss/snmp/NewDeviceMap.py", line 81, in process
if om.snmpOid:
AttributeError: ObjectMap instance has no attribute 'snmpOid'
2011-04-21 14:36:13,320 INFO zen.ZenModeler: processing zenoss.snmp.DeviceMap for device xxx
2011-04-21 14:36:13,320 INFO zen.ZenModeler: processing HPDeviceMap for device xxx
2011-04-21 14:36:13,320 INFO zen.ZenModeler: processing DellDeviceMap for device xxx
2011-04-21 14:36:13,321 INFO zen.ZenModeler: Modeler zenoss.snmp.InterfaceMap processing data for device xxx
2011-04-21 14:36:13,322 INFO zen.ZenModeler: processing zenoss.snmp.RouteMap for device xxx
2011-04-21 14:36:13,322 INFO zen.ZenModeler: processing zenoss.snmp.IpServiceMap for device sxxx
2011-04-21 14:36:13,323 INFO zen.ZenModeler: Modeler zenoss.snmp.HRFileSystemMap processing data for device xxx
2011-04-21 14:36:13,324 INFO zen.ZenModeler: Skipping Memory Buffers (other) as it matches zFileSystemMapIgnoreTypes.
2011-04-21 14:36:13,324 INFO zen.ZenModeler: Skipping Swap Space (virtualMemory) as it matches zFileSystemMapIgnoreTypes.
2011-04-21 14:36:13,324 INFO zen.ZenModeler: Skipping Real Memory (ram) as it matches zFileSystemMapIgnoreTypes.
2011-04-21 14:36:13,325 INFO zen.ZenModeler: Processing zenoss.snmp.HRSWRunMap for device xxx
2011-04-21 14:36:13,329 INFO zen.ZenModeler: processing zenoss.snmp.UCDHardDiskMap for device xxx
2011-04-21 14:36:13,330 INFO zen.ZenModeler: processing HPCPUMap for device xxx
2011-04-21 14:36:13,330 INFO zen.ZenModeler: processing DellCPUMap for device xxx
2011-04-21 14:36:13,330 INFO zen.ZenModeler: processing DellPCIMap for device xxx
Developers, where are you?! Thanks.
I'm having the exact same behavior... I run the the modeling command and get different results. I have done what I think win index the catalog as suggested in an earlier post. I'm running 3.1.0 and I'm trying to monitor a Cisco 5520 ASA.
Thanks
Ahnjoan
This is the command run successfuly before the remaining items in this e-mail. I'm not sure if this is what folks ment by reindexing catalog.
zencatalog run --createcatalog --forceindex
These commands are run right after each other and get different results
[zenoss@sbuzenoss log]$ zenmodeler run --now --monitor localhost -F -d 10.3.64.1
2011-05-26 22:05:57,190 INFO zen.ZenModeler: Connecting to localhost:8789
2011-05-26 22:05:57,199 INFO zen.ZenModeler: Connected to ZenHub
2011-05-26 22:05:57,262 INFO zen.ZenModeler: Collecting for device 10.3.64.1
2011-05-26 22:05:57,322 INFO zen.ZenModeler: No WMI plugins found for 10.3.64.1
2011-05-26 22:05:57,324 INFO zen.ZenModeler: No Python plugins found for 10.3.64.1
2011-05-26 22:05:57,326 INFO zen.ZenModeler: No command plugins found for 10.3.64.1
2011-05-26 22:05:57,328 INFO zen.ZenModeler: SNMP collection device 10.3.64.1
2011-05-26 22:05:57,328 INFO zen.ZenModeler: plugins: zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap
2011-05-26 22:06:01,428 INFO zen.ZenModeler: No portscan plugins found for 10.3.64.1
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 1003, in <module>
dc.run()
File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 272, in run
reactor.run()
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 912, in reactorLoop
reactor.runUntilCurrent()
--- <exception caught here> ---
File "/opt/zenoss/lib/python/twisted/internet/base.py", line 705, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/opt/zenoss/lib/python/twisted/internet/defer.py", line 243, in callback
self._startRunCallbacks(result)
File "/opt/zenoss/lib/python/twisted/internet/defer.py", line 298, in _startRunCallbacks
raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
2011-05-26 22:06:07,490 INFO zen.SnmpClient: snmp client finished collection for 10.3.64.1
2011-05-26 22:06:07,490 INFO zen.ZenModeler: Processing zenoss.snmp.NewDeviceMap for device 10.3.64.1
2011-05-26 22:06:07,490 ERROR zen.ZenModeler: Problem while executing plugin zenoss.snmp.NewDeviceMap
2011-05-26 22:06:07,491 ERROR zen.ZenModeler: Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 613, in processClient
datamaps = plugin.process(device, results, self.log)
File "/opt/zenoss/Products/DataCollector/plugins/zenoss/snmp/NewDeviceMap.py", line 81, in process
if om.snmpOid:
AttributeError: ObjectMap instance has no attribute 'snmpOid'
2011-05-26 22:06:07,491 INFO zen.ZenModeler: processing zenoss.snmp.DeviceMap for device 10.3.64.1
2011-05-26 22:06:07,491 INFO zen.ZenModeler: Modeler zenoss.snmp.InterfaceMap processing data for device 10.3.64.1
2011-05-26 22:06:07,493 INFO zen.ZenModeler: processing zenoss.snmp.RouteMap for device 10.3.64.1
2011-05-26 22:06:07,849 INFO zen.ZenModeler: No change in configuration detected
2011-05-26 22:06:08,193 INFO zen.ZenModeler: Scan time: 10.93 seconds
2011-05-26 22:06:08,498 INFO zen.ZenModeler: Daemon ZenModeler shutting down
[zenoss@sbuzenoss log]$ zenmodeler run --now --monitor localhost -F -d 10.3.64.1
2011-05-26 22:06:44,908 INFO zen.ZenModeler: Connecting to localhost:8789
2011-05-26 22:06:44,915 INFO zen.ZenModeler: Connected to ZenHub
2011-05-26 22:06:44,951 INFO zen.ZenModeler: Collecting for device 10.3.64.1
2011-05-26 22:06:45,014 INFO zen.ZenModeler: No WMI plugins found for 10.3.64.1
2011-05-26 22:06:45,016 INFO zen.ZenModeler: No Python plugins found for 10.3.64.1
2011-05-26 22:06:45,017 INFO zen.ZenModeler: No command plugins found for 10.3.64.1
2011-05-26 22:06:45,020 INFO zen.ZenModeler: SNMP collection device 10.3.64.1
2011-05-26 22:06:45,020 INFO zen.ZenModeler: plugins: zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap
2011-05-26 22:06:47,118 INFO zen.ZenModeler: No portscan plugins found for 10.3.64.1
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 1003, in <module>
dc.run()
File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 272, in run
reactor.run()
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 912, in reactorLoop
reactor.runUntilCurrent()
--- <exception caught here> ---
File "/opt/zenoss/lib/python/twisted/internet/base.py", line 705, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/opt/zenoss/lib/python/twisted/internet/defer.py", line 243, in callback
self._startRunCallbacks(result)
File "/opt/zenoss/lib/python/twisted/internet/defer.py", line 298, in _startRunCallbacks
raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
2011-05-26 22:06:51,175 INFO zen.SnmpClient: snmp client finished collection for 10.3.64.1
2011-05-26 22:06:51,176 ERROR zen.ZenModeler: Problem while executing plugin zenoss.snmp.NewDeviceMap
2011-05-26 22:06:51,176 ERROR zen.ZenModeler: Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 611, in processClient
results = plugin.preprocess(results, self.log)
File "/opt/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess
getdata = self.snmpGetMap.mapdata(getdata)
File "/opt/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata
data[self.oidmap[oid]] = value
KeyError: (1, 3, 6, 1, 2, 1, 1, 1, 0)
2011-05-26 22:06:51,176 INFO zen.ZenModeler: processing zenoss.snmp.DeviceMap for device 10.3.64.1
2011-05-26 22:06:51,177 INFO zen.ZenModeler: Modeler zenoss.snmp.InterfaceMap processing data for device 10.3.64.1
2011-05-26 22:06:51,179 INFO zen.ZenModeler: processing zenoss.snmp.RouteMap for device 10.3.64.1
2011-05-26 22:06:51,213 INFO zen.ZenModeler: No change in configuration detected
2011-05-26 22:06:51,261 INFO zen.ZenModeler: Scan time: 6.31 seconds
2011-05-26 22:06:51,272 INFO zen.ZenModeler: Daemon ZenModeler shutting down
Bump... me too...
Receiving the same error in 3.2.1 with several Enterasys switches.
"Traceback (most recent call last): File "/usr/local/zenoss/zenoss/Products/DataCollector/zenmodeler.py", line 621, in processClient results = plugin.preprocess(results, self.log) File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess getdata = self.snmpGetMap.mapdata(getdata) File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata data[self.oidmap[oid]] = value KeyError: (1, 3, 6, 1, 2, 1, 1, 2, 0)"
When I perform an snmpget for this MIB, I receive a correct response.
"SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.52.3.9.20.1.4"
OR
"Traceback (most recent call last): File "/usr/local/zenoss/zenoss/Products/DataCollector/zenmodeler.py", line 621, in processClient results = plugin.preprocess(results, self.log) File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess getdata = self.snmpGetMap.mapdata(getdata) File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata data[self.oidmap[oid]] = value KeyError: (1, 3, 6, 1, 2, 1, 1, 1, 0)"
snmpget:
"SNMPv2-MIB::sysDescr.0 = STRING: Enterasys Networks, Inc. G3G124-24 Rev 06.03.05.0004"
on a SuSE Linux server:
"Traceback (most recent call last): File "/usr/local/zenoss/zenoss/Products/DataCollector/zenmodeler.py", line 621, in processClient results = plugin.preprocess(results, self.log) File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess getdata = self.snmpGetMap.mapdata(getdata) File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata data[self.oidmap[oid]] = value KeyError: (1, 3, 6, 1, 2, 1, 1, 2, 0)"
snmpget:
"SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10"
I receive no errors when modeling these devices.
Highly possible that's happening because of duplicate SNMP Engine ID -- in my case that was because of VM cloning. Though I don't remember precisely if that triggered the above behaviour.
Hi
We are experiencing the same problem across all our linux machines(VM or real). This seems to happen most often directly after a reboot but does NOT happen on a forced modelling of a device.
Has anyone figured out why this happens?
Running zenoss-stack thats upgrded to 3.2.1
The stack trace we receive is:
Traceback (most recent call last):
File "/usr/local/zenoss/zenoss/Products/DataCollector/zenmodeler.py", line 621, in processClient
results = plugin.preprocess(results, self.log)
File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 271, in preprocess
getdata = self.snmpGetMap.mapdata(getdata)
File "/usr/local/zenoss/zenoss/Products/DataCollector/plugins/CollectorPlugin.py", line 320, in mapdata
data[self.oidmap[oid]] = value
KeyError: (1, 3, 6, 1, 2, 1, 1, 2, 0)
So, I need to configure a unique SNMP engine ID on each switch?
I've created an internal ticket #29598 to look into this issue. I'm unaware of any plans to create a new 3.x patch so the fix may only be in the 4.x community release.
Regards,
Phil Bowman
Sr. Software Developer, Zenoss
Thank you, Phil!
Jeff
i was getting the same thing. i tracked this down to a problem with twistedsnmp.py. i am not sure exactly what is happening but it appears to be a race with return_dct and the callback's from netsnmp. the following patch fixes the problem for me:
--- ../python/lib/python2.6/site-packages/pynetsnmp/twistedsnmp.py.orig 2012-03-13 11:11:50.752632482 -0400 +++ ../python/lib/python2.6/site-packages/pynetsnmp/twistedsnmp.py 2012-03-12 17:52:00.384273688 -0400 @@ -167,8 +167,9 @@ return for oid, value in response: - if self.return_dct: - oid = asOidStr(oid) + oid = asOidStr(oid) + #if self.return_dct: + # oid = asOidStr(oid) if isinstance(value, tuple): value = asOidStr(value) result.append((oid, value))
it seems safe to just always stuff the non-tuple version of the oid into the result's array.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||