1.0.4 • Published 7 years ago

nodebix v1.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

nodebix

Nodebix is a API library for zabbix

  • Login
  • Call API
  • Logout

example

var zabbix = require("nodebix");
var client = new zabbix("zabbix_url","user","password");

client.login()
.then((result) => {
    console.log(result);
    return client.call("host.get", {hostids: 20});
})
.then((result) => {
    console.log(result);
    return client.logout();
})
.then((result) => {
    console.log(result);
})
.catch((error) => console.log(error));

Result:

Logged in
{ jsonrpc: '2.0',
  result:
   [ { hostid: '1',
       proxy_hostid: '0',
       host: 'someserver',
       status: '1',
       ...
       } ],
  id: 1 }
Logged out
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago