{ "info": { "author": "ABF OSIELL, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n===========\nNSCA Client\n===========\n\nThis is a technical module to send passive alerts to your favorite NSCA daemon\n(Nagios, Shinken...).\nThis module is based on the Odoo cron system and requires a NSCA client\ninstalled on the system to satisfy the ``/usr/sbin/send_nsca`` command.\n\nInstallation\n============\n\nTo use this module, you need to install a NSCA client.\n\nOn Debian/Ubuntu::\n\n $ sudo apt-get install nsca-client\n\nConfiguration\n=============\n\nTo configure this module, you need to:\n\n* Configure your server and a passive service in your monitoring tool\n (e.g service ``Odoo Mail Queue`` on host ``MY-SERVER``).\n\n* Declare your NSCA server in the menu Configuration / Technical / NSCA Client / Servers\n\n.. image:: nsca_client/static/description/server.png\n :width: 400 px\n\n* Create NSCA checks in the menu Configuration / Technical / NSCA Client / Checks\n\n.. image:: nsca_client/static/description/check.png\n :width: 400 px\n\n* Code the methods which will be called by the NSCA checks.\n\nSuch methods must return a tuple ``(RC, MESSAGE, PERFORMANCE_DATA)`` where ``RC`` is an integer,\n``MESSAGE`` a unicode string AND ``PERFOMANCE_DATA`` is a dictionary.\n``RC`` values and the corresponding status are:\n\n- 0: OK\n- 1: WARNING\n- 2: CRITICAL\n- 3: UNKNOWN\n\n``PERFORMANCE_DATA`` is not mandatory, so it could be possible to send\n``(RC, MESSAGE)``.\nEach element of ``PERFORMANCE_DATA`` will be a dictionary that could contain:\n\n- value: value of the data (required)\n- max: Max value on the chart\n- min: Minimum value on the chart\n- warn: Warning value on the chart\n- crit: Critical value on the chart\n- uom: Unit of Measure on the chart (s - Seconds, % - Percentage, B - Bytes, c - Continuous)\n\nThe key of the dictionary will be used as the performance_data label.\n\nE.g:\n\n.. code-block:: python\n\n class MailMail(models.Model):\n _inherit = 'mail.mail'\n\n @api.model\n def nsca_check_mails(self):\n mails = self.search([('state', '=', 'exception')])\n if mails:\n return (1, u\"%s mails not sent\" % len(mails), {\n 'exceptions': {'value': len(mails)}})\n return (0, u\"OK\", {'exceptions': {'value': len(mails)}})\n\nOn the example, the performance data will use the label ``exceptions`` and the\nvalue will be the number of exception of mails.\n\nUsage\n=====\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/149/11.0\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\n\nCredits\n=======\n\nImages\n------\n\n* Daniel For\u00e9: `Icon `_ (Elementary theme, GPL).\n\nContributors\n------------\n\n* S\u00e9bastien Alix \n* Enric Tobella \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/OCA/server-tools", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo11-addon-nsca-client", "package_url": "https://pypi.org/project/odoo11-addon-nsca-client/", "platform": "", "project_url": "https://pypi.org/project/odoo11-addon-nsca-client/", "project_urls": { "Homepage": "http://github.com/OCA/server-tools" }, "release_url": "https://pypi.org/project/odoo11-addon-nsca-client/11.0.1.0.0.99.dev7/", "requires_dist": [ "odoo (<11.1dev,>=11.0a)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "Send passive alerts to monitor your Odoo application.", "version": "11.0.1.0.0.99.dev7" }, "last_serial": 5167000, "releases": { "11.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "947ae8a98fdf212574467f371b4cd633", "sha256": "a93361907f84b07e6e0789199dc738f97afec19d83d77aa54f88544b4ae14226" }, "downloads": -1, "filename": "odoo11_addon_nsca_client-11.0.1.0.0.99.dev2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "947ae8a98fdf212574467f371b4cd633", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 103545, "upload_time": "2018-10-31T05:55:36", "url": "https://files.pythonhosted.org/packages/fb/a1/c4a397d1177c5d4717e563b4bd08e3b6061049087a5e908f94587ee09e6b/odoo11_addon_nsca_client-11.0.1.0.0.99.dev2-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "b4390e0adbe9702fbbcb5a109009d67e", "sha256": "0dee93427323bdc9dc0edcc52c74ce2eb127d0ce86030961260cf77b56140494" }, "downloads": -1, "filename": "odoo11_addon_nsca_client-11.0.1.0.0.99.dev3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b4390e0adbe9702fbbcb5a109009d67e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 105033, "upload_time": "2018-11-27T05:57:42", "url": "https://files.pythonhosted.org/packages/44/bf/27005c026bcf4b9ec7d49052b84a264b874fddd50093cbc2777fa0f957d0/odoo11_addon_nsca_client-11.0.1.0.0.99.dev3-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev5": [ { "comment_text": "", "digests": { "md5": "c89b4a55fa5df4cdd60c519696dc2c01", "sha256": "7757794432716e67716c8df45ee0a1c9eccbec0e6484d560e0b741404de6051f" }, "downloads": -1, "filename": "odoo11_addon_nsca_client-11.0.1.0.0.99.dev5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c89b4a55fa5df4cdd60c519696dc2c01", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 105025, "upload_time": "2019-01-18T05:59:53", "url": "https://files.pythonhosted.org/packages/43/e5/b482f60946f5c0315003a1d9e22b8b358e980566ab515fbe8a4b734bd5e1/odoo11_addon_nsca_client-11.0.1.0.0.99.dev5-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev7": [ { "comment_text": "", "digests": { "md5": "5bb9c676704b967e3d27269aef2e5d60", "sha256": "c9704fced1dd5d1c7d569461d317d0f506aae49395f37ffed79d2cd0be7a60f8" }, "downloads": -1, "filename": "odoo11_addon_nsca_client-11.0.1.0.0.99.dev7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5bb9c676704b967e3d27269aef2e5d60", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 105157, "upload_time": "2019-04-20T05:04:16", "url": "https://files.pythonhosted.org/packages/71/ad/83329269a177df7aa002ae699b25111c5b591c73a40714bf0136f7235888/odoo11_addon_nsca_client-11.0.1.0.0.99.dev7-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5bb9c676704b967e3d27269aef2e5d60", "sha256": "c9704fced1dd5d1c7d569461d317d0f506aae49395f37ffed79d2cd0be7a60f8" }, "downloads": -1, "filename": "odoo11_addon_nsca_client-11.0.1.0.0.99.dev7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5bb9c676704b967e3d27269aef2e5d60", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 105157, "upload_time": "2019-04-20T05:04:16", "url": "https://files.pythonhosted.org/packages/71/ad/83329269a177df7aa002ae699b25111c5b591c73a40714bf0136f7235888/odoo11_addon_nsca_client-11.0.1.0.0.99.dev7-py2.py3-none-any.whl" } ] }