1.0.12 • Published 6 years ago

jszabbix v1.0.12

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
6 years ago

jsZabbix

jsZabbix is a Javascript module for working with the Zabbix API inspired by PyZabbix.

Requirements

  • Tested against Zabbix 1.8 through 4.0
  • For Node.js you will need the xmlhttprequest library.

Documentation

Getting Started

If you are using Node.js, install jsZabbix using npm:

$ npm install jszabbix

You can now require and use jszabbix like so:

let ZabbixAPI = require('jszabbix')

const ZABBIX_URL = process.env.ZABBIX_URL
const ZABBIX_USER = process.env.ZABBIX_USER
const ZABBIX_PASS = process.env.ZABBIX_PASS

let zapi = new ZabbixAPI(ZABBIX_URL)

zapi.login(ZABBIX_USER, ZABBIX_PASS).then(async (data) => {
    console.log(await zapi.host.get())
})

Refer to the Zabbix API Documentation and the jsZabbix Examples for more information.

Browser

You can also load this script on your browser like so:

<script src='https://cdn.jsdelivr.net/npm/jszabbix/jsZabbix.js'></script>

You can now use the class ZabbixAPI normally on the page, like you would on Node.js.

License

jsZabbix - Zabbix API Javascript Library.
Copyright (C) 2019  Guilherme Caulada (Sighmir)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago