Giter Site home page Giter Site logo

wpm-to-zabbix's Introduction

WPM-to-Zabbix

NO LONGER MAINTAINED

Funnel Neustar WPM Monitor data to Zabbix. Uses Neustar WPM REST API.

Will match WPM Monitor description to a Zabbix item key on the Zabbix host specified in the config. If description is empty on WPM Monitor, will skip.

I currently run this on a cron job every 5 minutes.

Setup

Rename config.ini.example to config.ini and fill in information.

Will create SQLite db in db dir to track changes.

Will send one of the following values to Zabbix:

  • 0 (INACTIVE)
  • 1 (SUCCESS)
  • 2 (WARNING)
  • 3 (ERROR)

Config

  • WPM

    • api_key
    • api_secret
    • sample_delta_min (how far back to request data from (last x minutes))
  • Zabbix Server (refers to Zabbix SERVER, not a monitored host)

    • ip
    • port
  • Zabbix Host (refers to a host monitored within Zabbix)

    • host_name

Requires:

  • tfullert/wpm-api (included)
  • python-protobix
  • Requests
  • SimpleJSON
  • psutil
  • sqlite3

Disclaimer:

  • Not affiliated with Neustar nor endorsed.
  • Writing log to /var/log requires root currently.

TODO:

  • Learn better python syntax and code style :D
  • Create db dir if not exist
  • Manage db size and delete at defined threshold.
  • Improve and clean up logging

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.