Socket
Book a DemoInstallSign in
Socket

zabbix

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zabbix

A minimal wrapper around request.js to facilitate fetching data from the Zabbix API.

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
20
-4.76%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

zabbix

FAQs

Package last updated on 22 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.