Listen for changes to objects in the Zeo database and update the
collectors' configuration.
The remote collectors connect the ZenHub and request configuration
information and stay connected. When changes are detected in the Zeo
database, configuration updates are sent out to collectors
asynchronously. In this way, changes made in the web GUI can affect
collection immediately, instead of waiting for a configuration cycle.
Each collector uses a different, pluggable service within ZenHub to
translate objects into configuration and data. ZenPacks can add services
for their collectors. Collectors communicate using Twisted's Perspective
Broker, which provides authenticated, asynchronous, bidirectional method
invocation.
ZenHub also provides an XmlRPC interface to some common services to
support collectors written in other languages.
|
__init__(self)
Hook ourselves up to the Zeo database and wait for collectors to
connect. |
source code
|
|
|
|
|
getRRDStats(self)
Return the most recent RRD statistic information. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
giveWorkToWorkers(self)
Parcel out a method invocation to an available worker process |
source code
|
|
|
|
|
|
|
heartbeat(self)
Since we don't do anything on a regular basis, just push heartbeats
regularly. |
source code
|
|
|
|
|
|
Inherited from ZenUtils.ZCmdBase.ZCmdBase :
closeAll ,
closedb ,
findDevice ,
getConnection ,
getContext ,
getDataRoot ,
getDmdObj ,
login ,
logout ,
opendb ,
sigTerm ,
syncdb ,
zodbConnect
Inherited from ZenUtils.ZenDaemon.ZenDaemon :
becomeDaemon ,
becomeWatchdog ,
changeUser ,
convertSocketOption ,
logname ,
niceDoggie ,
openPrivilegedPort ,
setupLogging ,
sighandler_USR1 ,
watchdogCycleTime ,
watchdogMaxRestartTime ,
watchdogStartTimeout ,
writePidFile
Inherited from ZenUtils.CmdBase.CmdBase :
buildParser ,
checkLogpath ,
generate_configs ,
generate_xml_configs ,
generate_xml_table ,
getConfigFileDefaults ,
getGlobalConfigFileDefaults ,
getParamatersFromConfig ,
loadConfigFile ,
parseOptions ,
pretty_print_config_comment ,
validateConfigFile
|