{ "info": { "author": "Michael Fladischer", "author_email": "michael@fladi.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Monitoring" ], "description": "Python MK Livestatus parser\n===========================\n\n:Author: Michael Fladischer\n:Version: 0.4\n\n.. contents::\n\nAccess the data returned from MK Livestatus queries as Python lists or dictionaries. \nIt does this by sending queries to the MK Livestatus UNIX socket and parses the returned rows. \nRead/write permission to the UNIX socket are required.\n\nThis package is known to be compatible with Python 2.7, 3.3, 34, pypy and pypy3.\n\nUsage\n-----\n\nHere a simple example to fetch the name and hostgroups for all servers in the UP (0) state:\n\n >>> from mk_livestatus import Socket\n >>> s = Socket(\"/var/lib/icinga/rw/live\")\n >>> q = s.hosts.columns('name', 'groups').filter('state = 0')\n >>> print q\n GET hosts\n Columns: name groups\n Filter: state = 0\n\t\n\t\n >>> q.call()\n [{'name': 'example.com', 'groups': ['ssh', 'snmp', 'smtp-server', 'ping-server', 'http-server', 'debian-server', 'apache2']}]\n\n``s.hosts`` returns a Query to the ``hosts`` resources on Nagios. The ``columns`` and ``filter`` methods modify our query and return it, so we can chain the calls. The call to `call` method returns the rows as a list of dictionaries. \n\nIf you use xinetd to bind the Unix socket to a TCP socket (like explained `here `_), you can create the socket like :\n\n >>> s = Socket(('192.168.1.1', 6557))\n\nFor more information please visit the `python-mk-livestatus website`_. Information about MK Livestatus and it's query syntax is available at the `mk-livestatus website`_.\n\n.. _python-mk-livestatus website: https://github.com/arthru/python-mk-livestatus\n.. _mk-livestatus website: http://mathias-kettner.de/checkmk_livestatus.html", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/python-mk-livestatus", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/arthru/python-mk-livestatus", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "python-mk-livestatus", "package_url": "https://pypi.org/project/python-mk-livestatus/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-mk-livestatus/", "project_urls": { "Download": "http://pypi.python.org/pypi/python-mk-livestatus", "Homepage": "https://github.com/arthru/python-mk-livestatus" }, "release_url": "https://pypi.org/project/python-mk-livestatus/0.4/", "requires_dist": null, "requires_python": null, "summary": "Helps to query MK livestatus and get results", "version": "0.4" }, "last_serial": 1466588, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "fa23a01670970555b51a3fb55fb64ba1", "sha256": "32dcdde623d4104ddb9f56a1cf479d8b6a54e4fe23f54a5d64606e8177d540b3" }, "downloads": -1, "filename": "python-mk-livestatus-0.1.tar.gz", "has_sig": false, "md5_digest": "fa23a01670970555b51a3fb55fb64ba1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3038, "upload_time": "2011-09-28T16:02:48", "url": "https://files.pythonhosted.org/packages/52/5f/aa203e94e888c8a275cbc5081addcd81d4ac3b0b3a7af8629e09b9209c57/python-mk-livestatus-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a8c26ab6ace97251a56b8e1bc54317ec", "sha256": "b33d28974789d6b491a1f3fc6087ebb8dbfbf8bd169586c9b6f89eeac49080ad" }, "downloads": -1, "filename": "python-mk-livestatus-0.2.tar.gz", "has_sig": false, "md5_digest": "a8c26ab6ace97251a56b8e1bc54317ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3202, "upload_time": "2013-10-18T07:11:26", "url": "https://files.pythonhosted.org/packages/69/d7/45869d1b3f0c8737783c6329f31d6d5db98ced80b7877e0eaf92ef00869e/python-mk-livestatus-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "3a53f102449307cdc97447f2b94d9311", "sha256": "2edf8c1a01ec0fbcb923e523d28c55af07413096ff0cfa0115766f32ca504f85" }, "downloads": -1, "filename": "python-mk-livestatus-0.3.tar.gz", "has_sig": false, "md5_digest": "3a53f102449307cdc97447f2b94d9311", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3212, "upload_time": "2014-05-26T08:45:18", "url": "https://files.pythonhosted.org/packages/7a/54/1165cc6e9587654e2d6095de7b86f4f1a8e547b4433b29dbe01bb2c6f33a/python-mk-livestatus-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "2bfba1517ecfeb9db359ffff4caea161", "sha256": "e48959c0f01205db2faa93ab8f76e35de7aff5cd65cbc2d79dea23a3d7bfcfae" }, "downloads": -1, "filename": "python_mk_livestatus-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "2bfba1517ecfeb9db359ffff4caea161", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 5056, "upload_time": "2015-03-18T09:43:43", "url": "https://files.pythonhosted.org/packages/5a/84/98f51eca0f571d1ec025faacc686b61b910cab0b09f342508fcf95a3ee40/python_mk_livestatus-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e05117e62c7e51d9dd8d01d86dde0df2", "sha256": "ad8bda17f152eca73a273e93309c03190214588ff81095cd4f920be6d08356d9" }, "downloads": -1, "filename": "python-mk-livestatus-0.4.tar.gz", "has_sig": false, "md5_digest": "e05117e62c7e51d9dd8d01d86dde0df2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3719, "upload_time": "2015-03-18T09:38:16", "url": "https://files.pythonhosted.org/packages/ce/c6/5bcb137f44e1346b0247554763bb525ce4a8b7c9d70d5109b5bfdf09ad69/python-mk-livestatus-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2bfba1517ecfeb9db359ffff4caea161", "sha256": "e48959c0f01205db2faa93ab8f76e35de7aff5cd65cbc2d79dea23a3d7bfcfae" }, "downloads": -1, "filename": "python_mk_livestatus-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "2bfba1517ecfeb9db359ffff4caea161", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 5056, "upload_time": "2015-03-18T09:43:43", "url": "https://files.pythonhosted.org/packages/5a/84/98f51eca0f571d1ec025faacc686b61b910cab0b09f342508fcf95a3ee40/python_mk_livestatus-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e05117e62c7e51d9dd8d01d86dde0df2", "sha256": "ad8bda17f152eca73a273e93309c03190214588ff81095cd4f920be6d08356d9" }, "downloads": -1, "filename": "python-mk-livestatus-0.4.tar.gz", "has_sig": false, "md5_digest": "e05117e62c7e51d9dd8d01d86dde0df2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3719, "upload_time": "2015-03-18T09:38:16", "url": "https://files.pythonhosted.org/packages/ce/c6/5bcb137f44e1346b0247554763bb525ce4a8b7c9d70d5109b5bfdf09ad69/python-mk-livestatus-0.4.tar.gz" } ] }