This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Query MK Livestatus and return results as objects.

Project Description

# Livestatus (Object Oriented)

Helps to query MK Livestatus and return results as objects

## Installation

pip install livestatus-objects

## Example

>>> from livestatus_objects import LivestatusServer, Host
>>> s = LivestatusServer(localhost, 50000)
>>> host = Host.get(s, 'www01.example.net')
>>> host
infra-www01.hostsvpn.sysnove.net
>>> host.services
[Fork rate, Linux diskstat, Linux procstat, Load, Memory, NTP Clock Offset, Partitions, Postfix mail queue, Postfix stats, Ssh, Swap, Swap paging rate, Total procs, Uptime, Zombie procs]
>>> host.last_state
'UP'
>>> host.services[3]
Load
>>> host.services[3].last_state
'OK'
>>> host.services[3].perf_data
'load1=0.000;5.000;20.000;0; load5=0.010;5.000;15.000;0; load15=0.050;5.000;10.000;0;'

## Licence

This code is under [WTFPL](https://en.wikipedia.org/wiki/WTFPL). Just do what the fuck you want with it.

Release History

Release History

This version
History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
livestatus-objects-0.4.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Sep 7, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting