Skip navigation
1 2 Previous Next 16815 Views 23 Replies Latest reply: May 16, 2013 11:48 AM by eistconn RSS Go to original post
  • emb3dd3d Newbie 2 posts since
    Nov 11, 2010
    Currently Being Moderated
    15. Mar 14, 2012 5:01 PM (in response to mwcotton)
    Re: ZENTRAP keeps going down

    strange you guys mention this.. I have the same 12 hr issue with zenmodeler and zenhub.   Like clockwork.. and it shoots me the pages , of course.  I am blue in the face and the boss just turned of his alerting.  Unfortunately , I have not done my due diligence with research to the logs.. maybe I can get to it today.  It would be nice to get a bugfix or stumble upon a fix..

     

    I will keep checking back.

     

    thanx for posting this topic, I thought it was just me.

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    16. Mar 14, 2012 5:29 PM (in response to emb3dd3d)
    Re: ZENTRAP keeps going down

    Has anyone tried porting the v4.1.7 alpha zentrap to v3.2.1?

     

    --Shane

  • jplouis ZenossEmployee 93 posts since
    May 7, 2008
    Currently Being Moderated
    17. Mar 14, 2012 11:53 PM (in response to Shane Scott)
    Re: ZENTRAP keeps going down

    I believe this is the patch done to resolve similar 3.2.1 zentrap issues at a customer site:

     

    Index: /branches/core/zenoss-3.2.x/Products/ZenHub/services/SnmpTrapConfig.py

    ===================================================================

    --- /branches/core/zenoss-3.2.x/Products/ZenHub/services/SnmpTrapConfig.py (revision 46761)

    +++ /branches/core/zenoss-3.2.x/Products/ZenHub/services/SnmpTrapConfig.py (revision 52650)

    @@ -112,17 +112,15 @@

                 self._create_user(object)

             else:

                 for listener in self.listeners:

                     listener.callRemote('notifyConfigChanged')

             CollectorConfigService.update(self, object)

    -        self._procrastinator.doLater()

        

         def deleted(self, object):

             for listener in self.listeners:

                 listener.callRemote('notifyConfigChanged')

             CollectorConfigService.update(self, object)

    -        self._procrastinator.doLater()

     

     

    if __name__ == '__main__':

         from pprint import pprint

         from Products.ZenHub.ServiceTester import ServiceTester

    Index: /branches/core/zenoss-3.2.x/Products/ZenCollector/services/config.py

    ===================================================================

    --- /branches/core/zenoss-3.2.x/Products/ZenCollector/services/config.py (revision 44697)

    +++ /branches/core/zenoss-3.2.x/Products/ZenCollector/services/config.py (revision 52650)

    @@ -254,17 +254,24 @@

         def _notifyAll(self, object):

             """

             TODO

             """

             # TODO doc me

    +        if not isinstance(object, Device):

    +            self.log.debug("Trying to procrastinate pushConfig for non-device: %s" % object)

    +            return

             if object.perfServer.getRelatedId() == self.instance:

                 self._procrastinator.doLater(object)

     

         def _pushConfig(self, device):

             """

             TODO

             """

    +        if not isinstance(device, Device):

    +            self.log.debug("Trying to pushConfig for non-device: %s" % device)

    +            return defer.DeferredList([])

    +

             deferreds = []

     

             if self._filterDevice(device):

                 proxy = self._wrapFunction(self._createDeviceProxy, device)

                 if proxy:

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    18. Mar 15, 2012 1:45 AM (in response to jplouis)
    Re: ZENTRAP keeps going down

    jplouis:

     

    Interesting patch.

     

    I'll be interested to see how it tests.

     

    Thanks jp!

     

    Best,

    --Shane

  • Andreas Falk Rank: White Belt 12 posts since
    Jul 9, 2012
    Currently Being Moderated
    19. Jul 9, 2012 11:13 AM (in response to jplouis)
    Re: ZENTRAP keeps going down

    Hi,

     

    Have the patch fixed the problem?
    Is it "pretty safe" to apply it to a live environment.
    With some backups before

     

    --
    Regards Falk

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    20. Jul 9, 2012 3:36 PM (in response to Andreas Falk)
    Re: ZENTRAP keeps going down

    Andreas:

     

    I haven't heard. It patches the zenhub configurations ervices, so you'll need to restart everything. You can always reverse the patch and restart again.

     

    Best,

    --Shane (Hackman238)

  • Andreas Falk Rank: White Belt 12 posts since
    Jul 9, 2012
    Currently Being Moderated
    21. Jul 20, 2012 7:47 AM (in response to Shane Scott)
    Re: ZENTRAP keeps going down

    I've made the change on our test system and everything worked out right..
    So I just made the same change on our prod system (where the trouble has been).

     

    The diffs was this..

     

    diff Products/ZenHub/services/SnmpTrapConfig.py  Products/ZenHub/services/SnmpTrapConfig.py_DIST

    117c117

    <         #self._procrastinator.doLater()

    ---

    >         self._procrastinator.doLater()

    123c123

    <         #self._procrastinator.doLater()

    ---

    >         self._procrastinator.doLater()

    diff Products/ZenCollector/services/config.py Products/ZenCollector/services/config.py_DIST

    259,261d258

    <         if not isinstance(object, Device):

    <             self.log.debug("Trying to procrastinate pushConfig for non-device: %s" % object)

    <             return

    269,272d265

    <         if not isinstance(device, Device):

    <             self.log.debug("Trying to pushConfig for non-device: %s" % device)

    <             return defer.DeferredList([])

     

    --

    Regards Falk

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    22. Jul 20, 2012 11:58 AM (in response to Andreas Falk)
    Re: ZENTRAP keeps going down

    Andreas:

     

    Excellent.

     

    Best,

    --Shane (Hackman238)

  • eistconn Newbie 1 posts since
    May 2, 2013
    Currently Being Moderated
    23. May 16, 2013 11:48 AM (in response to Shane Scott)
    Re: ZENTRAP keeps going down

    I am having exactly the same problem. zentrap daemon crashes every 12 hours. However when I applied the patch in this discussion, the problem still exists.

     

    I did completely restart zenoss after applying the patch.

     

    We are using zenoss 3.2.1.

     

    On our productive system I have applied the workaround of an hourly cronjob, but it would be nicet to get to the bottom of this problem.

1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

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