I think the device name in Zenoss should be the FQDN of the device - at
least that works best.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
dhoetger wrote:
I've had a nice stable install of Zenoss 2.0.6 running for about a week now,
adding devices as time permits, and now I'm having a big problem with some of
the devices... by all accounts it appears that the devices have been
cross-referenced in the database, but I don't know how to determine that for
certain (or fix it). Hopefully, one of you kind persons will be able to help me
out with this:
I have a device called GreatLakes7 and another called GreatLakes3. I perform a
model on GreatLakes7 and receive the following Traceback:
Traceback (most recent call last): File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 100, in processClient changed =
self._applyDataMap(device, datamap) File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 141, in _applyDataMap changed =
self._updateRelationship(tobj, datamap) File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 176, in _updateRelationship changed =
self._createRelObject(device, objmap, rname) File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 300, in _createRelObject
rel._setObject(remoteObj.id, remoteObj) File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 99, in _setObject
self.addRelation(object) File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 93, in addRelation obj.manage_afterAdd(obj, self)
File "/opt/zenoss/Products/ZenModel/DeviceComponent.py", line 154, in manage_afterAdd self.index_object() File
"/opt/zenoss/Products/ZenModel/ZenModelRM.py", line 301, i
n i
ndex_object cat.catalog_object(self, self.getPrimaryId()) File "/opt/zenoss/lib/python/Products/ZCatalog/ZCatalog.py", line 567, in
catalog_object update_metadata=update_metadata) File "/opt/zenoss/lib/python/Products/ZCatalog/Catalog.py", line 336, in catalogObject
index = self.uids.get(uid, None) File "/opt/zenoss/lib/python/ZODB/Connection.py", line 701, in setstate raise ConnectionStateError(msg)
ConnectionStateError: Shouldn't load state for 0x012ceb when the connection is closed Traceback (most recent call last): File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 100, in processClient changed = self._applyDataMap(device, datamap) File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 141, in _applyDataMap changed = self._updateRelationship(tobj, datamap) File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 201, in _updateRelationship rel._delObject(id) File
"/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 73, in _d
elO
bject self.removeRelation(obj) File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 97, in removeRelation self._remoteRemove(obj) File
"/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 192, in _remoteRemove rel._remove(self.__primary_parent__) File
"/opt/zenoss/Products/ZenRelations/ToOneRelationship.py", line 91, in _remove raise ObjectNotFound ObjectNotFound Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 100, in processClient changed = self._applyDataMap(device, datamap) File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 141, in _applyDataMap changed = self._updateRelationship(tobj, datamap) File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 201, in _updateRelationship rel._delObject(id) File
"/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 73, in _delObject self.removeRelation(obj) File
"/opt/zenoss/Products/ZenRelations/RelationshipBase.py",
li
ne 97, in removeRelation self._remoteRemove(obj) File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 192, in _remoteRemove
rel._remove(self.__primary_parent__) File "/opt/zenoss/Products/ZenRelations/ToOneRelationship.py", line 91, in _remove raise ObjectNotFound
ObjectNotFound Traceback (most recent call last): File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 100, in processClient changed
= self._applyDataMap(device, datamap) File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 141, in _applyDataMap changed =
self._updateRelationship(tobj, datamap) File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 201, in _updateRelationship
rel._delObject(id) File "/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 73, in _delObject self.removeRelation(obj) File
"/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 97, in removeRelation self._remoteRemove(obj) File
"/opt/zenoss/Products/ZenRelations/ToM
any
ContRelationship.py", line 192, in _remoteRemove rel._remove(self.__primary_parent__) File
"/opt/zenoss/Products/ZenRelations/ToOneRelationship.py", line 91, in _remove raise ObjectNotFound ObjectNotFound Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 100, in processClient changed = self._applyDataMap(device, datamap) File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 141, in _applyDataMap changed = self._updateRelationship(tobj, datamap) File
"/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 201, in _updateRelationship rel._delObject(id) File
"/opt/zenoss/Products/ZenRelations/ToManyRelationshipBase.py", line 73, in _delObject self.removeRelation(obj) File
"/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 98, in removeRelation self._remove(obj) File
"/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 169, in _remove robj.manage_beforeDelete(robj, self) File "/opt/zenoss/
Pro
ducts/ZenModel/DeviceComponent.py", line 170, in manage_beforeDelete self.unindex_object() File
"/opt/zenoss/Products/ZenModel/ZenModelRM.py", line 308, in unindex_object cat.uncatalog_object(self.getPrimaryId()) File
"/opt/zenoss/lib/python/Products/ZCatalog/ZCatalog.py", line 599, in uncatalog_object self._catalog.uncatalogObject(uid) File
"/opt/zenoss/lib/python/Products/ZCatalog/Catalog.py", line 389, in uncatalogObject x.unindex_object(rid) File
"/opt/zenoss/Products/ManagableIndex/ManagableIndex.py", line 269, in unindex_object self._unindex_object(documentId,val,1) File
"/opt/zenoss/Products/ManagableIndex/ManagableIndex.py", line 272, in _unindex_object self._unindexValue(documentId,val) File
"/opt/zenoss/Products/ManagableIndex/FieldIndex.py", line 26, in _unindexValue self._remove(val,documentId) File
"/opt/zenoss/Products/ManagableIndex/ManagableIndex.py", line 470, in _remove else: dl.remove(docId) KeyError: 1877707223
Here's the log - please note the references to a completely different device:
2007-10-04 16:54:56 INFO zen.ZenModeler no cmd plugins found for
GreatLakes7
2007-10-04 16:54:56 INFO zen.ZenModeler snmp collection device
GreatLakes7
2007-10-04 16:54:56 INFO zen.ZenModeler plugins:
zenoss.snmp.IpServiceMap, zenoss.snmp.InformantHardDiskMap,
zenoss.snmp.InterfaceMap, zenoss.snmp.DeviceMap, zenoss.snmp.HPDeviceMap,
zenoss.snmp.HRSWInstalledMap, zenoss.snmp.DellCPUMap,
zenoss.snmp.HRFileSystemMap, zenoss.snmp.HPCPUMap, zenoss.snmp.DellPCIMap,
zenoss.snmp.DellDeviceMap, zenoss.snmp.RouteMap, zenoss.snmp.NewRouteMap,
zenoss.snmp.HRSWRunMap, zenoss.snmp.InterfaceAliasMap
2007-10-04 16:54:56 INFO zen.ZenModeler portscan collection device
GreatLakes7
2007-10-04 16:54:56 INFO zen.ZenModeler plugins:
zenoss.portscan.IpServiceMap
2007-10-04 16:54:56 INFO zen.ZenModeler Running 2 clients
2007-10-04 16:54:58 INFO zen.SnmpClient snmp client finished collection
for GreatLakes3
2007-10-04 16:54:58 INFO zen.ApplyDataMap processing
zenoss.snmp.IpServiceMap for device GreatLakes3
2007-10-04 16:54:58 ERROR ZODB.Connection Shouldn't load state for
0x012ceb when the connection is closed
2007-10-04 16:54:58 ERROR zen.ApplyDataMap plugin
zenoss.snmp.IpServiceMap device GreatLakes3
2007-10-04 16:54:58 WARNING zen.ZenModeler client GreatLakes3 not
found in active clients
2007-10-04 16:55:40 INFO zen.SnmpClient snmp client finished collection
for GreatLakes7
2007-10-04 16:55:40 INFO zen.ApplyDataMap processing
zenoss.snmp.IpServiceMap for device GreatLakes7
2007-10-04 16:55:41 ERROR zen.ApplyDataMap plugin
zenoss.snmp.IpServiceMap device GreatLakes7
2007-10-04 16:55:41 WARNING zen.ZenModeler client GreatLakes7 not
found in active clients
2007-10-04 16:55:42 INFO zen.PortscanClient portscan client
finished collection for GreatLakes7
2007-10-04 16:55:42 INFO zen.ApplyDataMap processing Ip Services
for device GreatLakes7
2007-10-04 16:55:43 INFO zen.ApplyDataMap changes applied
2007-10-04 16:55:43 WARNING zen.ZenModeler client GreatLakes7 not
found in active clients
2007-10-04 16:56:32 INFO zen.SnmpClient snmp client finished collection
for GreatLakes7
2007-10-04 16:56:32 INFO zen.ApplyDataMap processing
zenoss.snmp.IpServiceMap for device GreatLakes7
2007-10-04 16:56:33 ERROR zen.ApplyDataMap plugin
zenoss.snmp.IpServiceMap device GreatLakes7
2007-10-04 16:56:34 INFO zen.SnmpClient snmp client finished collection
for GreatLakes7
2007-10-04 16:56:34 INFO zen.ApplyDataMap processing
zenoss.snmp.IpServiceMap for device GreatLakes7
2007-10-04 16:56:35 ERROR zen.ApplyDataMap plugin
zenoss.snmp.IpServiceMap device GreatLakes7
2007-10-04 16:56:40 INFO zen.PortscanClient portscan client
finished collection for GreatLakes7
2007-10-04 16:56:40 INFO zen.ApplyDataMap processing Ip Services
for device GreatLakes7
2007-10-04 16:56:40 ERROR zen.ApplyDataMap plugin
zenoss.portscan.IpServiceMap device GreatLakes7
2007-10-04 16:56:40 INFO zen.ZenModeler scan time: 138.54 seconds
2007-10-04 16:56:40 INFO zen.ZenModeler stopping...
2007-10-04 16:56:41 INFO zen.Device collected snmp information for
device GreatLakes7
And for good measure, software components:
Zenoss Zenoss 2.0.6
OS Linux (i686) 2.6.18 (Linux Z1 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35
EDT 2007 i686)
Zope Zope 2.8.8
Python Python 2.4.3
Database MySQL 5.0.22 (Ver 5.0.22)
RRD RRDtool 1.2.23
Twisted Twisted 2.5.0
SNMP PySNMP 3.4.3
Twisted SNMP TwistedSNMP 0.3.13
NetSnmp NetSnmp 5.3.1
This issue seems to only affect modeling of some existing devices and all new devices
(i.e. attempting to add GreatLakes8 yields a slew of errors, some of which mention
GreatLakes7 and a zope error similar to "ERROR Zope.UnIndex FieldIndex:
unindex_object could not remove documentId 1877707192 from index monitored. This should
not happen.").
Any assistance in identifying and resolving the issue would be very greatly
appreciated.
-Dan
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=11429#11429
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users