{ "info": { "author": "nixargh", "author_email": "nixargh@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 3", "Topic :: System :: Monitoring", "Topic :: System :: Networking :: Monitoring", "Topic :: System :: Systems Administration" ], "description": "**It's a fork of** .\n\n# Zabbix module for Python\n\n## Install\n\n### GitHub\n```shell\ngit clone https://github.com/nixargh/py-zabbix.git\ncd ./py-zabbix\npip3 install -e ./\n```\n\n### pip\n```shell\npip3 install zabbix\n```\n\n## Examples\n\n### ZabbixAPI\n\n```python\n\n from zabbix.api import ZabbixAPI\n\n # Create ZabbixAPI class instance\n zapi = ZabbixAPI(url='https://localhost/zabbix/', user='admin', password='zabbix')\n\n # Get all monitored hosts\n result1 = zapi.host.get(monitored_hosts=1, output='extend')\n\n # Get all disabled hosts\n result2 = zapi.do_request('host.get',\n {\n 'filter': {'status': 1},\n 'output': 'extend'\n })\n\n # Filter results\n hostnames1 = [host['host'] for host in result1]\n hostnames2 = [host['host'] for host in result2['result']]\n```\n\n### Add Session Reusage\n```python\n# Continuation of previous example\n\nsession = zapi.auth\n\nother_zapi = ZabbixAPI(\n url='https://localhost/zabbix/',\n auth=session)\n\n```\n\n### ZabbixSender\n\n```python\n\n from pyzabbix import ZabbixMetric, ZabbixSender\n\n # Send metrics to zabbix trapper\n packet = [\n ZabbixMetric('hostname1', 'test[cpu_usage]', 2),\n ZabbixMetric('hostname1', 'test[system_status]', \"OK\"),\n ZabbixMetric('hostname1', 'test[disk_io]', '0.1'),\n ZabbixMetric('hostname1', 'test[cpu_usage]', 20, 1411598020),\n ]\n\n result = ZabbixSender(use_config=True).send(packet)\n```\n\n\n# CHANGELOG \nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)\nand this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).\n\n## [1.2.4]\n### Changed\n- `setup.py` adjusted for PyPi.\n\n### Added\n- `README` example of session reusage.\n\n## [1.2.0] - 2018-08-20\n### Added\n- `api` allow session reusage.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nixargh/py-zabbix", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "zabbix", "package_url": "https://pypi.org/project/zabbix/", "platform": "", "project_url": "https://pypi.org/project/zabbix/", "project_urls": { "Homepage": "https://github.com/nixargh/py-zabbix" }, "release_url": "https://pypi.org/project/zabbix/1.2.4/", "requires_dist": null, "requires_python": "", "summary": "Python module to work with zabbix.", "version": "1.2.4" }, "last_serial": 4244549, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "8ef7a888260c1657e55e872ac36ea219", "sha256": "6830d97bde551d9785edf783231df5c2d883b4948c881c92ceb16480dba2d7fb" }, "downloads": -1, "filename": "zabbix-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8ef7a888260c1657e55e872ac36ea219", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10248, "upload_time": "2018-09-06T09:46:58", "url": "https://files.pythonhosted.org/packages/ba/e5/fbf3e7552476f9807916bd4fb75ba4010afcf5a2e051a17f28a7a7c2b1cb/zabbix-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f29ca9cac2bcc5a6c7446ae772c92038", "sha256": "b17fcdacd8cc934995c0f4ac03be6c75161b6160e71563452996358856e64797" }, "downloads": -1, "filename": "zabbix-1.2.0.tar.gz", "has_sig": false, "md5_digest": "f29ca9cac2bcc5a6c7446ae772c92038", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8311, "upload_time": "2018-09-06T09:47:00", "url": "https://files.pythonhosted.org/packages/50/ac/dca0f3ded0d2d88143da360a9952847e2a989866cef3a728e5de6e98a42f/zabbix-1.2.0.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "1e81da55061a5b22c861344f72347d4e", "sha256": "b3453d30e1203b5705a11d53cd0d3c9e46a36171b5d749f919f7672948e0d35f" }, "downloads": -1, "filename": "zabbix-1.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1e81da55061a5b22c861344f72347d4e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10419, "upload_time": "2018-09-06T12:13:33", "url": "https://files.pythonhosted.org/packages/0a/c7/ad23b59bffa3ded26d1e7cb0b7fe9e399fc36b8e2d8c556a3d357f2e7294/zabbix-1.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96bcd289fcac4dc0fc8fceca1706eb01", "sha256": "ccee721d37e5ae203e759077520ac2e42bec5ba9c72ea92ed781e983b8359a74" }, "downloads": -1, "filename": "zabbix-1.2.4.tar.gz", "has_sig": false, "md5_digest": "96bcd289fcac4dc0fc8fceca1706eb01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9451, "upload_time": "2018-09-06T12:13:35", "url": "https://files.pythonhosted.org/packages/c7/66/51e42a3bc2ca3fa8574cc2dc916244832d2cefd89d22cc40a094455e0de1/zabbix-1.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e81da55061a5b22c861344f72347d4e", "sha256": "b3453d30e1203b5705a11d53cd0d3c9e46a36171b5d749f919f7672948e0d35f" }, "downloads": -1, "filename": "zabbix-1.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1e81da55061a5b22c861344f72347d4e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10419, "upload_time": "2018-09-06T12:13:33", "url": "https://files.pythonhosted.org/packages/0a/c7/ad23b59bffa3ded26d1e7cb0b7fe9e399fc36b8e2d8c556a3d357f2e7294/zabbix-1.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96bcd289fcac4dc0fc8fceca1706eb01", "sha256": "ccee721d37e5ae203e759077520ac2e42bec5ba9c72ea92ed781e983b8359a74" }, "downloads": -1, "filename": "zabbix-1.2.4.tar.gz", "has_sig": false, "md5_digest": "96bcd289fcac4dc0fc8fceca1706eb01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9451, "upload_time": "2018-09-06T12:13:35", "url": "https://files.pythonhosted.org/packages/c7/66/51e42a3bc2ca3fa8574cc2dc916244832d2cefd89d22cc40a094455e0de1/zabbix-1.2.4.tar.gz" } ] }