Skip to content

suryasr007/zenoss-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-Zenoss-Client

Inspired from python-zenoss-client

Contributions

Contributions are welcomed via PR.

Installation

git clone https://github.com/suryasr007/zenoss-client

# Then run
npm install

Usage

  • Import the client
const ZenossClient = require('./zenoss_client');
  • Intialize the class
b = new ZenossClient("host", "user", "pass");
  • Assign router_endpoints, action, method.
  b.router_endpoint = 'device_router'; //Default
  b.action = "DeviceRouter"; //Default
  b.method = "getDevices"; //Default
  • run the 'run' function with required parameters
  res = b.run({params: {name:'xxxx'}});
  • The above method returns a promise
res.then((successMessage)=>{
    obj = successMessage.body;
    console.log(obj);
}).catch((err)=>{
    console.log(err);    
})

Documentation

For full documentation of zenoss API, kindly refer to the link below:

json_api.sh SHELL script published on zenoss official wiki

  • Conventional naming of routers
Products.Zuul.routers.device -> device_router
Products.Zuul.routers.users -> users_router
Products.Zuul.routers.triggers -> triggers_router

About

Zenoss client to interact with zenoss API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published