Archived community.zenoss.org | full text search
Skip navigation
1954 Views 7 Replies Latest reply: Nov 8, 2011 2:35 AM by Erik Itland RSS
Erik Itland Rank: White Belt 9 posts since
Apr 26, 2010
Currently Being Moderated

Nov 3, 2011 9:17 AM

What decides how often a collector is run?

I've been trying to reconfigure the cycle time of a performance collector (zenperfsql) a few times and for some reason or another some of the hosts seem to be polled according to the old configuration while other hosts are polled according to the new configuration. How I found out was by grepping for "changing state from RUNNING to SQLC_QUERY" in zenperfsql.log.

 

It seems to me that the configuration is stashed away in a cache somewhere, maybe in the object database or somewhere (have been looking for .pickle and .zec files to no avail though).

 

Does anyone know?

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    1. Nov 3, 2011 9:22 AM (in response to Erik Itland)
    Re: What decides how often a collector is run?

    Have you restarted all the collectors, or use push configuration changes ...?

     

    --

    James Pulver

    ZCA Member

    LEPP Computer Group

    Cornell University

    Have you restarted all the collectors or used push configuration changes ...

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    3. Nov 3, 2011 10:28 AM (in response to Erik Itland)
    Re: What decides how often a collector is run?

    Yes.

     

    --

    James Pulver

    ZCA Member

    LEPP Computer Group

    Cornell University

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    6. Nov 4, 2011 8:21 AM (in response to Erik Itland)
    Re: What decides how often a collector is run?

    The reason you can't trivially find the cycle interval for zenperfsql is that it is part of Egor's ZenPack, rather than a standard daemon with Zenoss Core.  The version I have is ZenPacks.community.SQLDataSource 1.96 and this has a sqlPerfConfig.py file under the services directory of the ZenPack.  In my version, the comments say that the polling interval is taken from the WinCycleInterval (default 60 sec) though the actual code looks like it is picking up the snmp cycle interval of 300 secs.  There is a TODO note in my version that suggests he may be looking at making this interval configurable.

     

    Hope that helps!

     

    Cheers,

    Jane

More Like This

  • Retrieving data ...

Legend

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