Module to work with the Zenoss JSON API (Fork)


Keywords
zenoss, api, json, rest
License
WTFPL
Install
pip install zenoss-fork==0.7.2

Documentation

python-zenoss Build Status

Python module to work with the Zenoss JSON API (Fork)

Installation

PyPi

pip install zenoss-fork

Manually

python setup.py test
python setup.py build
sudo python setup.py install

Usage

List all devices in Zenoss

from zenoss import Zenoss

zenoss = Zenoss('http://zenoss:8080/', 'admin', 'password')

for device in zenoss.get_devices()['devices']:
    print(device['name'])

Get event detail (use client cert for authentication)

from zenoss import Zenoss

# create Zenoss instance (ssl_verify = False is optional)
zenoss = Zenoss(
    host = 'https://zenoss.host.com',
    cert = '/home/user/cert.pem',
    ssl_verify = False
    )

print zenoss.get_event_detail("e4115bd1-2290-a6f3-11e6-0568d53d97e4")