Code Monkey home page Code Monkey logo

zabbix.js's Introduction

zabbix.js

The bug has been fixed but I have not had time to look at the code. This whole module obviously needs a lot of work but I am not currently involved with zabbix things where I work.

Currently there is a bug where the client will crash when Zabbix's database is down. This is because Zabbix returns a HTML page from the API instead of returning a proper JSONRPC API error response. I have created a ticket on the Zabbix ticket tracker, until it gets fixed I will implement a change that will detect if we get HTML or JSON before parsing it.

You can see the status of the ticket here: https://support.zabbix.com/browse/ZBX-5565

Description

A small client for the Zabbix API based around the excellent request.js library.

I hacked this together quick because I needed a way to pull data from Zabbix into node for a project.

How to use

As per the Zabbix API you MUST get the api version first, and then authenticate to do pretty much anything.

Look in the examples folder for how it's done :)

I can't promise I won't change how this works with regards to how the module is structured, but it will stay pretty much the same :)

Contributing

Please let me know if I have done something in a stupid way, or you have suggestions or whatnot.

I am on IRC (Freenode) with the same nick as here, or just contact me here.

This is my first node.js module, and basically the first thing I've done in javascript too, so I bet there are mistakes and things to learn.

I will be adding more features and useful things as I go along, as well as make a full test suite with Mocha, I just need to learn it first.

Contributors

@Rauno56

zabbix.js's People

Contributors

flexd avatar rauno56 avatar joaobentes avatar oliverhuynh avatar

Watchers

James Cloos avatar  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.