Archived community.zenoss.org | full text search
Skip navigation
5231 Views 12 Replies Latest reply: Aug 13, 2012 12:52 AM by subhranshu dwivedi RSS
taupehat Rank: White Belt 20 posts since
Jun 29, 2011
Currently Being Moderated

Nov 15, 2011 3:11 PM

Set monitoring for SMTP greyed out?

Zenoss 3.2.1 on RHEL, I'm trying to enable SMTP monitoring for specific linux servers but when I try to enable monitoring under IP services, it's greyed out:

 

greyout.png

 

So I click on smtp there and have done Enable Monitoring and saved changes, but no joy:

 

enabled.png

 

What else needs to happen to implement this change?

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    2. Nov 22, 2011 5:36 AM (in response to taupehat)
    Re: Set monitoring for SMTP greyed out?

    There was a bug around this but I thought that it was solved by 3.2.1.

     

    A couple of thoughts:

    1) Have you restarted the zenprocess daemon - zenprocess restart

    2) Try claering your browser cache - I got caught by this on something different yesterday.

     

    I have a 3.2.1 and my Monitoring is NOT greyed out.

     

    Cheers,

    Jane

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    3. Nov 22, 2011 7:59 AM (in response to taupehat)
    Re: Set monitoring for SMTP greyed out?

    I see this too on 3.2.1 core, but worse for the chances of this being fixed is it's in 4.1.1 Enterprise... so unless we can get some pressure to fix in 4.2 betas . . . I'm not sure what the exact issue is - I can set monitored for some processes, and not for others.

     

    --

    James Pulver

    ZCA Member

    LEPP Computer Group

    Cornell University

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    5. Nov 23, 2011 2:24 PM (in response to taupehat)
    Re: Set monitoring for SMTP greyed out?

    There may be something in ZenDMD, but I don't know what it is...

    --

    James Pulver

    ZCA Member

    LEPP Computer Group

    Cornell University

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    6. Nov 23, 2011 2:45 PM (in response to jmp242)
    Re: Set monitoring for SMTP greyed out?

    This was definitely fixed - the fix is in changeset http://dev.zenoss.com/trac/changeset/25791  against my ticket http://dev.zenoss.com/trac/ticket/7842 . It was fixed back around February this year.

     

    I don't currently have a 3.2.1 Zenoss running but it looks like it is only about 4 lines in one file.  I would have a look at that file on your 3.2.1 system and see whether the patch actually made it through to that build.  If you need to apply the changeset, look at the discussion here - message/58864#58864 .

     

    Tomorrow I may have access to my 3.2.1 system but hopefully you will have resolved it by then .

     

    Please report back here so others can follow.

     

    Cheers,

    jane

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    8. Nov 24, 2011 5:31 AM (in response to taupehat)
    Re: Set monitoring for SMTP greyed out?

    Hmm.  I am not a zenpatch guru but it looks to me like you still have the old osprocess.py.

     

    I have run up my 3.2.1 system - it was a new build, not an upgrade from anything earlier, and the Monitoring button for processes on devices IS active - without any explicit patching.  Do you know the history of your Zenoss installation - is it a new buidl at 3.2.1 or has it come through an upgrade path??

     

    The only file that gets changed by the patch is $ZENHOME/Products/Zuul/infos/component/osprocess.py.  I have compared this file on my 3.1 system that had been patched with "zenpatch 25791", with the same file on my 3.2.1 system and they are identical - and both work.

     

    I think I would take my own backup of this osprocess.py file (just for safety) and run the zenpatrch again and say "Y" to apply patch anyway.  The zenpatch process should backup the old file in osprocess.py.orig so choose a different backup filename for your extra backup.

     

    I would recycle all daemons when this is complete.

     

    Usual rules apply on taking system backups etc especially if this is a production system

     

    The file is only 53 lines long so I will post it here.

    Cheers,

    Jane

     

     

    ###########################################################################

    #

    # This program is part of Zenoss Core, an open source monitoring platform.

    # Copyright (C) 2010, Zenoss Inc.

    #

    # This program is free software; you can redistribute it and/or modify it

    # under the terms of the GNU General Public License version 2 as published by

    # the Free Software Foundation.

    #

    # For complete information please visit: http://www.zenoss.com/oss/

    #

    ###########################################################################

     

    from zope.interface import implements

    from Products.Zuul.decorators import info

    from Products.Zuul.interfaces import IOSProcessInfo

    from Products.Zuul.infos.component import ComponentInfo, ServiceMonitor

     

    class OSProcessInfo(ComponentInfo):

        implements(IOSProcessInfo)

     

        @property

        @info

        def processClass(self):

            return self._object.osProcessClass()

     

        @property

        def processName(self):

            return self._object.name()

     

        def getAlertOnRestart(self):

            return self._object.alertOnRestart()

        def setAlertOnRestart(self, value):

            if value is not None:

                self._object.zAlertOnRestart = value

            else:

                self._object.deleteZenProperty('zAlertOnRestart')

        alertOnRestart = property(getAlertOnRestart, setAlertOnRestart)

     

        def getFailSeverity(self):

            return self._object.getFailSeverity()

        def setFailSeverity(self, value):

            if value is not None:

                self._object.zFailSeverity = value

            else:

                self._object.deleteZenProperty('zFailSeverity')

        failSeverity = property(getFailSeverity, setFailSeverity)

     

        monitor = ServiceMonitor()

     

        @property

        def monitored(self):

            return self._object.monitored()

  • jnalley Newbie 5 posts since
    Apr 4, 2012
    Currently Being Moderated
    11. Apr 16, 2012 3:59 PM (in response to taupehat)
    Re: Set monitoring for SMTP greyed out?

    Did you ever get any solution to this issue taupehat? I'm having the same issue with other IP services.  Also on 3.2.1

  • subhranshu dwivedi Newbie 4 posts since
    Jul 23, 2012
    Currently Being Moderated
    12. Aug 13, 2012 12:52 AM (in response to jcurry)
    Re: Set monitoring for SMTP greyed out?

    When i am running the zenpatch, i am getting the following errors:

     

    #zenpatch 25791

    Getting patch from Internet...

    http://dev.zenoss.org/trac/changeset/25791?format=diff&new=25791

    determining strip size for /usr/local/zenoss/Products/r25791.patch

     

     

    Applying patch with strip=3

    patch -b --strip=3 < r25791.patch

    (Stripping trailing CRs from patch.)

    patching file Zuul/infos/component/osprocess.py

    Reversed (or previously applied) patch detected!  Assume -R? [n] n

    Apply anyway? [n] y

    Hunk #1 FAILED at 15.

    Hunk #2 FAILED at 47.

    2 out of 2 hunks FAILED -- saving rejects to file Zuul/infos/component/osprocess.py.rej

     

    Dont know what is the issue, i am using :

    "Ubuntu 8.04.4 LTS" 2.6.24-26-server #1 SMP Tue Dec 1 19:19:20 UTC 2009 i686 GNU/Linux

    Zenoss 3.2.1

     

    some ip services have monitored option greyed out.

     


More Like This

  • Retrieving data ...

Legend

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