{ "info": { "author": "Zope Corporation and contributors", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Zope Public License", "Programming Language :: Python", "Topic :: System :: Monitoring" ], "description": ".. contents::\n\nIntroduction\n============\n\nThis package enable to monitoring of Zope 2 instance from the command line. It plugs zc.monitor (http://pypi.python.org/pypi/zc.monitor) and zc.z3monitor (http://pypi.python.org/pypi/zc.z3monitor) in Zope 2.\nzc.monitor use zc.ngi server and define another thread to handle monitoring. This way you should still be able to monitor your application even if the\nHTTPServer is hanging.\n\nZope config\n===========\n\nAdd this to your ``zope.conf`` to enable the zc.ngi server on the loopback interface on port 8888::\n\n \n bind 127.0.0.1:8888\n \n\n\nProbes\n======\n\nThis package has been tested with probes coming from different packages:\n\n - zc.z3monitor\n - Products.ZNagios\n - zc.monitorcache\n - zc.monitorlogstats\n - ztfy.monitor\n\nTo register your own probe, just define a new utility providing the ``zc.z3monitor.interfaces.IZ3MonitorPlugin`` interface. Like this::\n\n \n\nand the component should look like this::\n\n def zc_uptime(connection, database='main'):\n \"\"\"uptime of the zope instance in seconds\"\"\"\n app = App()\n elapsed = time.time() - app.Control_Panel.process_start\n print >> connection, elapsed\n app._p_jar.close()\n\nZODB connection is always the first parameter. You can add your own parameters after.\n\nOnce you start your instance you should see something like::\n\n INFO zc.ngi.async.server listening on ('127.0.0.1', 8888)\n\nThe ngi server is started and you can look up values with netcat for example::\n\n echo 'uptime' | nc -i 1 localhost 8888\n\nplone.recipe.zope2instance\n==========================\n\nIf you configure your zope instance using buildout and the plone.recipe.zope2instance recipe (http://pypi.python.org/pypi/plone.recipe.zope2instance).\nTo define the zc.z2monitor host and port use the ``zope-conf-additional`` option like this::\n\n [client1]\n recipe = plone.recipe.zope2instance\n http-address = 8080\n user = admin:admin\n eggs =\n ${buildout:eggs}\n zcml =\n ${buildout:zcml}\n zope-conf-additional =\n \n bind 127.0.0.1:8888\n \n\n\nOnce the instance is running, you will be able to ask the available probes from the\ncommand line using::\n\n bin/instance monitor dbinfo main\n\nwhich is the equivalent to::\n\n echo 'dbinfo main' | nc -i 1 \n\nTo know the registered probes, Use this command::\n\n bin/instance monitor help\n\nChangelog\n=========\n\n0.2 (2012-11-05)\n----------------\n\n- Add entry point for plone.recipe.zope2instance\n\n- More documentation\n\n\n0.1 (2012-11-05)\n----------------\n\n- Initial implementation", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/five.monitor", "keywords": "Zope zc.monitor monitoring", "license": "ZPL", "maintainer": null, "maintainer_email": null, "name": "five.z2monitor", "package_url": "https://pypi.org/project/five.z2monitor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/five.z2monitor/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/five.monitor" }, "release_url": "https://pypi.org/project/five.z2monitor/0.2/", "requires_dist": null, "requires_python": null, "summary": "Enable zc.monitor with Zope 2", "version": "0.2" }, "last_serial": 792009, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5f2a47afb04e4fe6dd4cd3e008392b48", "sha256": "c1b0b2ef8602d189167ae9c76ace566ebf8445bbb02fcd69b6cadcccf2e171b6" }, "downloads": -1, "filename": "five.z2monitor-0.1.tar.gz", "has_sig": false, "md5_digest": "5f2a47afb04e4fe6dd4cd3e008392b48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3138, "upload_time": "2012-11-05T16:15:20", "url": "https://files.pythonhosted.org/packages/3d/7a/75556ab9e83cf0a2f54849d68acb84c6e69d53acbc3695fb6f588237cfb2/five.z2monitor-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "41dac2e37e2c69ff5439aaf03bbe5e99", "sha256": "48db4bbd685e39ee1531dd318421989ae0e83600d246a799608f55164ce76e2b" }, "downloads": -1, "filename": "five.z2monitor-0.2.tar.gz", "has_sig": false, "md5_digest": "41dac2e37e2c69ff5439aaf03bbe5e99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5308, "upload_time": "2012-11-05T17:26:10", "url": "https://files.pythonhosted.org/packages/3b/93/1505e8b8fac9c787439d79c04a49715f3821f2a158f9d91d8bad71374417/five.z2monitor-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41dac2e37e2c69ff5439aaf03bbe5e99", "sha256": "48db4bbd685e39ee1531dd318421989ae0e83600d246a799608f55164ce76e2b" }, "downloads": -1, "filename": "five.z2monitor-0.2.tar.gz", "has_sig": false, "md5_digest": "41dac2e37e2c69ff5439aaf03bbe5e99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5308, "upload_time": "2012-11-05T17:26:10", "url": "https://files.pythonhosted.org/packages/3b/93/1505e8b8fac9c787439d79c04a49715f3821f2a158f9d91d8bad71374417/five.z2monitor-0.2.tar.gz" } ] }