Skip to content


Open Source

This ZenPack is developed and supported by Zenoss Inc. Contact Zenoss to request more information regarding this or any other ZenPacks. Click here to view all available Zenoss Open Source ZenPacks.


Zenoss, Inc.


GNU General Public License, Version 2, or later



More Information:

GitHub page/HomePage

Git Sources (For Cloning):


Applications Monitored:

Apache ZooKeeper

ZooKeeper ZenPack

Monitoring of Apache ZooKeeper nodes and clusters.


This is an Open Source ZenPack developed by Zenoss, Inc. Enterprise support for this ZenPack is available to commercial customers with an active subscription.


Version 1.0.0- Download: Released on 2014/09/05: Requires PythonCollector ZenPack: Compatible with Zenoss Core 4.2.x, Zenoss Resource Manager 4.2.x


The ZenPacks.zenoss.ZooKeeper ZenPack monitors Apache ZooKeeper server via Twisted client TCP connection.


The features added by this ZenPack can be summarized as follows. They are each detailed further below.

  • Discovery and periodic remodeling of ZooKeeper component.
  • Performance monitoring.
  • Event monitoring.
  • Optional service impact with addition of Zenoss Service Dynamics product.


The following component will be automatically discovered through the ZooKeeper port you provide:

ZooKeeper: Attributes: Name, Mode, Status, Node Count, ZooKeeper Version, Zxid

Performance Monitoring

The following metrics will be collected and graphed every 5 minutes by default:

ZooKeeper: Metrics: Outstanding Requests, Received/Sent Packets, Connections, Avg/Min/Max Latencies

Event monitoring

The following events will be triggered:

ZooKeeper: Error: Incorrect port supplied or connection refused.

Service Impact

When combined with the Zenoss Service Dynamics product, this ZenPack adds built-in service impact capability for ZooKeeper. The following service impact relationships are automatically added. These will be included in any services containing one or more of the explicitly mentioned entities.

Service Impact Relationships
  • ZooKeeper is affected by hosting Device failure.
External Impact Relationships
  • ZooKeeper failure affects associated Hadoop Data Node, Secondary Name Node, Job Tracker, Task Tracker, Resource Manager, Node Manager and Job History.


Use the following steps to start monitoring ZooKeeper server:

  1. Select Infrastructure from the navigation bar.
  2. Click the device name in the device list. The device overview page appears.
  3. Select Configuration Properties from the left panel.
  4. Set zZooKeeperPort if ZooKeeper port differs from the default one (2181).
  5. Navigate to the Modeler plugins page of the device containing your ZooKeeper server and add the ZooKeeperCollector modeler plugin.
  6. Select Model device from the gear menu.

Alternatively you can use zenbatchload to add ZooKeeper monitoring servers from the command line. To do this, you must create a text file with hostname and ZooKeeper port of all the servers you want to add. The devices should be added under the target machine device class (e.g. '/Devices/Server/Linux' in the example below).

/Devices/Server/Linux zCollectorPlugins=['ZooKeeperCollector']
<HOST NAME> zZooKeeperPort='2181'

You can then load the ZooKeeper monitoring servers into Zenoss Core or Resource Manager as devices with the following command.

$ zenbatchload <filename>


Please refer to the Zenoss Service Dynamics documentation if you run into any of the following problems:

  • ZenPack will not install
  • Adding a device fails
  • Don't understand how to add a device
  • Don't understand how to model a device

If you cannot find the answer in the documentation, then Resource Manager (Service Dynamics) users should contact Zenoss Customer Support. Core users can use the #zenoss IRC channel or the forums.

Installed Items

Installing this ZenPack will add the following items to your Zenoss system.

Modeler Plugins
  • ZooKeeperCollector
Monitoring Templates
  • ZooKeeper (in /Device)
Component Types
  • ZooKeeper (on related device)


Type Name
Performance Collector zenpython


  • Initial release