Git Product home page Git Product logo

zabbix's Introduction

Zabbix Data Adapter

Pre-requisites

Zabbix

Tested against Zabbix 3.0 with MySQL back end.

Python

wavefront-sdk-python

Install wavefront-sdk-python

pip install wavefront-sdk-python

Configuring the script

At the top of the script there are various configuration parameters. You will need to modify the DB_ ones as appropriate for your Zabbix database. Other options can be left at their defaults if you wish.

The script will pull values from your history and history_uint tables every POLL_INTERVAL seconds. If you modify the LIMIT parameter it will affect the reads from both tables.

We have set the SEND_TO_WF parameter to False initially. This will cause the script to simply print the values it reads to standard out rather than sending anything to Wavefront. Once you have configured the Wavefront Proxy you should change this parameter to True and restart the script.

Metrics in Wavefront are strings separated by a . character, E.g.: “system.cpu.load.percpu.avg1”. The ZABBIX_PREFIX allows you to prefix all of the metrics that you retrieve from Zabbix with a common string. We recommend leaving this prefix in place so that in future any metrics collected from other sources will be distinguished from Zabbix.

Running the script

To get started:

chmod +x zabbix_db_adapter.py
./zabbix_db_adapter.py

The script will print some output every POLL_INTERVAL. You can stop it at any time by pressing Control-c

The script will save the latest clock interval that it has processed in the files “last_history_clock.hist” and “last_historyuint_clock.hist” which are saved in the same working directory as the script is run from. The initial clock time is “now”. If you wish to start retrieving values from some point in the past you can create those files and enter your preferred start time.

When you first run the script with SEND_TO_WF set to False you’ll see the values printed to the screen.

zabbix's People

Contributors

vinothinis avatar ezeev avatar jbau avatar agriffin208 avatar ajayj89 avatar panghy avatar gangadharaswamy avatar vikramraman avatar srinivas-kandula avatar svinothini24 avatar yogeshprasad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.