Archived community.zenoss.org | full text search
Skip navigation
29853 Views 2 Replies Latest reply: Nov 24, 2009 3:04 PM by Kamil Kisiel RSS
Kamil Kisiel Rank: White Belt 46 posts since
Feb 12, 2009
Currently Being Moderated

Nov 12, 2009 7:34 PM

Bad items in Processes hierarchy

I have some items that appear to be broken. They are not monitored correctly on devices (do not disappear when remodelled, even though the process is no longer running). Clicking on the process in the tree gives the following traceback:

 

Type: KeyError
Value: 'nfsd'

Traceback (innermost last):

  • Module ZPublisher.Publish, line 119, in publish
  • Module ZPublisher.mapply, line 88, in mapply
  • Module ZPublisher.Publish, line 42, in call_object
  • Module Products.ZenModel.ZenModelBase, line 65, in __call__
  • Module Shared.DC.Scripts.Bindings, line 313, in __call__
  • Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  • Module Products.CMFCore.FSPageTemplate, line 216, in _exec
  • Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
  • Module Products.PageTemplates.PageTemplate, line 98, in pt_render
  • Module zope.pagetemplate.pagetemplate, line 115, in pt_render
  • Module zope.tal.talinterpreter, line 271, in __call__
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 891, in do_useMacro
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 891, in do_useMacro
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 949, in do_defineSlot
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 949, in do_defineSlot
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 891, in do_useMacro
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 949, in do_defineSlot
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  • Module zope.tal.talinterpreter, line 521, in do_optTag
  • Module zope.tal.talinterpreter, line 516, in no_tag
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 824, in do_loop_tal
  • Module zope.tal.talinterpreter, line 346, in interpret
  • Module zope.tal.talinterpreter, line 408, in do_startTag
  • Module zope.tal.talinterpreter, line 485, in attrAction_tal
  • Module Products.PageTemplates.Expressions, line 206, in evaluateText
  • Module zope.tales.tales, line 696, in evaluate
    URL: file:/usr/local/zenoss/zenoss/Products/ZenModel/skins/zenmodel/osProcessClassStatus.pt
    Line 84, Column 8
    Expression: <PathExpr standard:u'proccl/getPrimaryUrlPath'>
    Names:
    {'container': <ZentinelPortal at /zport>,
     'context': <OSProcessClass at /zport/dmd/Processes/NFS/osProcessClasses/nfsd>,
     'default': <object object at 0x7fc9df3a5230>,
     'here': <OSProcessClass at /zport/dmd/Processes/NFS/osProcessClasses/nfsd>,
     'loop': {u'proccl': <Products.PageTemplates.Expressions.PathIterator object at 0x7daeb90>},
     'nothing': None,
     'options': {'args': ()},
     'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x5ab3488>,
     'request': <HTTPRequest, URL=https://zenoss.lan.zymeworks.com/zport/dmd/Processes/NFS/osProcessClasses/nfsd>,
     'root': <Application at >,
     'template': <FSPageTemplate at /zport/osProcessClassStatus used for /zport/dmd/Processes/NFS/osProcessClasses/nfsd>,
     'traverse_subpath': [],
     'user': <PropertiedUser 'kamil'>}
  • Module zope.tales.expressions, line 217, in __call__
  • Module Products.PageTemplates.Expressions, line 139, in _eval
  • Module Products.PageTemplates.Expressions, line 103, in render
  • Module Products.ZenRelations.PrimaryPathObjectManager, line 71, in getPrimaryUrlPath
  • Module Products.ZenRelations.PrimaryPathObjectManager, line 80, in primaryAq
  • Module Products.ZenUtils.Utils, line 239, in getObjByPath
  • Module OFS.Application, line 135, in __bobo_traverse__

KeyError: 'nfsd'

 

 

If I click on the process checkbox and attempt to delete it, I get a different traceback:

 

Type: AttributeError
Value: 'NoneType' object has no attribute 'os'

Traceback (innermost last):

  • Module ZPublisher.Publish, line 119, in publish
  • Module ZPublisher.mapply, line 88, in mapply
  • Module ZPublisher.Publish, line 42, in call_object
  • Module Products.ZenModel.OSProcessOrganizer, line 188, in removeOSProcessClasses

AttributeError: 'NoneType' object has no attribute 'os'

 

How the heck do I get rid of these?

  • daalexander Newbie 1 posts since
    Nov 24, 2009
    Currently Being Moderated
    1. Nov 24, 2009 2:31 PM (in response to Kamil Kisiel)
    Re: Bad items in Processes hierarchy

    I ran into a similar problem with items in the Processes hierarchy.  I noticed because zenprocess wouldn't run and I tracked it down to the items in this tree.


    To resolve the problem with zenprocess not running (which hopefully should resolve your issue as well), I reindexed the zope db.  I found the information on this page: http://www.sysadminwiki.net/wiki/index.php?title=Common_Zenoss_Errors_-_Post_Install#Missing_devices_.2F_can_longer_see_old_devices_you_know_are_there

     

    run 'zendmd'

    reindex()

    commit()

     

    (re)start the zenprocess daemon

     

     

    One thing that I tried that didn't work to resolve the problem but allowed me to delete the Process object was deleting the container that had the object.  For example the "httpd" object was broken.  I created a new organizer named "Web", moved the "httpd" process to that orgranizer and then deleted the orgranizer.    This removed the object from Zenoss and hopefully truly removed it from the backend.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points