Skip to content

stevegoossens/python-zenoss

 
 

Repository files navigation

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/', username = 'admin', password = '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('https://zenoss.host.com', cert = '/home/user/cert.pem', ssl_verify = False)

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

About

Python module to work the Zenoss API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%