Hello,

While I'm modeling a Solaris device running net-snmp, I get a traceback from 
the HRSWRunMap plugin:


Code:

ERROR:zen.ApplyDataMap:plugin zenoss.snmp.HRSWRunMap device ******
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 91, 
in addRelation
    ToManyRelationshipBase.addRelation(self, obj)
  File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 84, in 
addRelation
    self._add(obj)
  File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 158, 
in _add
    v=checkValidId(self, id)
  File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 67, in checkValidId
    if id in ('.', '..'): raise BadRequest, (
BadRequest: The id "." is invalid because it is not traversable.
INFO:zen.ZenModeler:scan time: 0.72 seconds
INFO:zen.ZenModeler:stopping...




The origin of this error is a defunct process running on the monitored server, 
which creates the following entry in the SNMP process table:


Code:

 snmpwalk -v2c -c ****** ****** 1.3.6.1.2.1.25.4.2 | grep  27176
HOST-RESOURCES-MIB::hrSWRunIndex.27176 = INTEGER: 27176
HOST-RESOURCES-MIB::hrSWRunName.27176 = STRING: "."
HOST-RESOURCES-MIB::hrSWRunID.27176 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrSWRunPath.27176 = ""
HOST-RESOURCES-MIB::hrSWRunParameters.27176 = ""
HOST-RESOURCES-MIB::hrSWRunType.27176 = INTEGER: application(4)
HOST-RESOURCES-MIB::hrSWRunStatus.27176 = INTEGER: invalid(4)




As you can see, the dot value in the line hrSWRunName is the cause, this is 
also my <defunct> process on the monitored server!

Now, I know that defunct processes are not a good thing, but in a quiet large 
environment with sometimes buggy apps [Twisted Evil], this can be a common 
thing.  It would be nice if the plugin could handle such an exception.

Note: Zenoss is v.2.0.5.

Any help is appreciated. Thanks




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=10812#10812

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to