{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Zabbix sender for EPICS-CA\n\nThis package allows to send metrics to a Zabbix server from EPICS records via Channel Access.\n\nSee [docmentation](https://sasaki77.github.io/zabbix-epics-py/)\n\n## Installing\n\nSimple install is below.\n\n```bash\npip install zabbix-epics-py\n```\n\nOr clone this package and install it.\n\n```bash\n# clone the repository\ngit clone https://github.com/sasaki77/zabbix-epics-py\ncd zabbix-epics-py\n# install zabbix-epics-py\npip install -e .\n```\n\n## Usage\n\nBefore using this program, you should create hosts and items in Zabbix.\nType of the items must be set to Zabbix trapper.\n\nBelow is a simple example usage.\nValues of `TEST:PV` are sent to a Zabbix server at 30 sec intervals and metrics are stored to `zabbix-epics-py-test.item` key of `dummyHost`.\n\n```python\n>>> from zbxepics import ZabbixSenderCA\n>>> server_ip = '127.0.0.1'\n>>> port = 10051\n>>> config = False\n>>> items = [dict(host='dummyHost', pv='TEST:PV', interval=30, item_key='zabbix-epics-py-test.item', func='last')]\n>>> sender = ZabbixSenderCA(server_ip, port, config, items)\n>>> sender.run()\n```\n\n`interval` is an interval in seconds between sending metrics to Zabbix. If `interval` is set to `monitor`, metrics are sent every monitor update.\n\n`func` determines a function to be applied to a monitored value buffer.\n\nAvalilable funcs are below.\n\n- last\n- min\n- max\n- avg\n\nFor example, a monitored pv is processed 3 times and its value changed to 1, 2 and 3. Then the value sent to Zabbix is 2 if `func` is set to avg.\n\n## Test\n\nSome part of tests run HTTP server on 30051 port to emulate a Zabbix server.\n\nYou should concern localhost http access to test correctly.\n(e.g. HTTP proxy settings)\n\nRun without coverage:\n```bash\npip install pytest\npytest\n```\n\nRun with coverage:\n```bash\npip install pytest pytest-cov\npytest --cov zbxepics\ncoverage report -m\n```\n\n## Build Documentation\n```\npip install sphinx m2r sphinx_rtd_theme\ncd doc/_build/html\nmake html\n```\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/sasaki77/zabbix-epics-py", "keywords": "", "license": "", "maintainer": "Shinya Sasaki", "maintainer_email": "", "name": "zabbix-epics-py", "package_url": "https://pypi.org/project/zabbix-epics-py/", "platform": "", "project_url": "https://pypi.org/project/zabbix-epics-py/", "project_urls": { "Homepage": "https://github.com/sasaki77/zabbix-epics-py" }, "release_url": "https://pypi.org/project/zabbix-epics-py/0.1.1/", "requires_dist": [ "future", "py-zabbix (>=1.1.2)", "pyepics", "pytest ; extra == 'develop'", "pytest-cov ; extra == 'develop'", "pycodestyle ; extra == 'develop'" ], "requires_python": "", "summary": "Zabbix-EPICS for Python", "version": "0.1.1" }, "last_serial": 5988321, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "0bb125f0889e5efeaa4dbebb7a01c4dc", "sha256": "2e87113c8363b13dcdc9b08a0ef8162acd7032065fdd006051b26886bbd40a30" }, "downloads": -1, "filename": "zabbix_epics_py-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0bb125f0889e5efeaa4dbebb7a01c4dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21260, "upload_time": "2019-10-17T08:13:34", "url": "https://files.pythonhosted.org/packages/00/0a/8cc9aa3d977c324db1b9498753aea34b5367a808a32031aa7c8aca181413/zabbix_epics_py-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b514a3324f1c0b69d80591835ed0300b", "sha256": "a46ea22368a872db7726a785ac1d10600c72a770a2801920083ce3e35f98e094" }, "downloads": -1, "filename": "zabbix-epics-py-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b514a3324f1c0b69d80591835ed0300b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12401, "upload_time": "2019-10-17T08:13:36", "url": "https://files.pythonhosted.org/packages/47/b6/b33c320a1e0e982fe5fc383d004d5fce4b7c573032ca517fe4525d0d8ba9/zabbix-epics-py-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0bb125f0889e5efeaa4dbebb7a01c4dc", "sha256": "2e87113c8363b13dcdc9b08a0ef8162acd7032065fdd006051b26886bbd40a30" }, "downloads": -1, "filename": "zabbix_epics_py-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0bb125f0889e5efeaa4dbebb7a01c4dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21260, "upload_time": "2019-10-17T08:13:34", "url": "https://files.pythonhosted.org/packages/00/0a/8cc9aa3d977c324db1b9498753aea34b5367a808a32031aa7c8aca181413/zabbix_epics_py-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b514a3324f1c0b69d80591835ed0300b", "sha256": "a46ea22368a872db7726a785ac1d10600c72a770a2801920083ce3e35f98e094" }, "downloads": -1, "filename": "zabbix-epics-py-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b514a3324f1c0b69d80591835ed0300b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12401, "upload_time": "2019-10-17T08:13:36", "url": "https://files.pythonhosted.org/packages/47/b6/b33c320a1e0e982fe5fc383d004d5fce4b7c573032ca517fe4525d0d8ba9/zabbix-epics-py-0.1.1.tar.gz" } ] }