ZenPack:Data Mirroring

From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search
Author(s)
Jan Garaj
Current Maintainer(s)
Jan Garaj
Organization
Jan Garaj
License
GNU General Public License, Version 2, or later
ZenPack name
ZenPacks.JanGaraj.DataMirroring
More Information
GitHub page/HomePage
Git sources (for cloning)
Link




Data Mirroring ZenPack

It provides example code for realtime mirroring Zenoss 4 data into another (monitoring) systems.

Warning

The ZenPack Catalog has moved to its new home at https://www.zenoss.com/product/zenpacks as of January 17, 2017. The following information may be out of date, and this page will eventually be removed.

Support

This ZenPack is developed by the Zenoss user community and supported via our online forums. Zenoss, Inc. does not provide direct support for this ZenPack.

Background

This ZenPack is not standard Zenpack Install&Use. It provides only example code to mirror Zenoss data into another (monitoring) systems. It's monkey patch for Products.ZenRRD.RRDUtil.RRDUtil.put() method, so you have to be 100% sure about your ZenPack code. Mirror tasks are executed in new threads and they don't block Zenoss RRDUtil code. It depends on your requirements, but probably you will need to implement some performance improvements (persistent connections/connection pool/...) for serious production service. Keep in mind also concurrency and timeouts problems in your code.

Example codes are provided for mirroring to:

   Carbon (Graphite)/Dataloop/InfluxDB
   Horizon (Skyline)
   OpenTSDB
   collectd
   Zabbix
   MySQL/MariaDB
   file

Installation

Normal Installation (packaged egg)

  1. Download the appropriate egg file for the version of Zenoss you are running.
  2. Ensure you are logged in as the zenoss user:
    $ sudo su - zenoss
  3. Install the ZenPack:
    $ zenpack --install ZenPacks.JanGaraj.DataMirroring-*.egg
  4. Restart these services:
    $ zenoss restart

Developer Mode Installation

In order to do a development mode installation you will want to clone the existing git repository, and then use the --link flag with the zenpack command:

  1. Ensure you are logged in as the zenoss user:
    $ sudo su - zenoss
  2. Start by cloning the upstream repository:
    $ git clone https://github.com/monitoringartist/ZenPacks.JanGaraj.DataMirroring.git
  3. Next, perform the installation:
    $ zenpack --link --install ZenPacks.JanGaraj.DataMirroring
  4. Finally, restart these serivices:
    $ zenoss restart

Discuss

Purplemarker.png New: Don't forget to add yourself to the Zenoss User Map!

blog comments powered by Disqus