{ "info": { "author": "Nicor Lengert", "author_email": "nicorlengert@gmx.de", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# djangovisor\n\nThis is a django project, which collects data from supervisor instances on one or multiple servers, stores it and plots it it using bootstrap and the javascript library dygraphs. Example website: http://djangovisor.cfs-me-research.net/djangovisor/. \n\nThere is a very similar app for the server monitoring tool monit called django-monit-collector.\n\n### Features\n- Collects supervisor data from one or multiple servers. \n- Collects process cpu and memory usage and stores the data for a given time period. \n- Displays it in pretty graphs. \n- Start/stop/restart buttons for processes. \n- Shows the tails of spuervisor and process specific logfiles. \n- Status tables and graphs are refreshing automatically via ajax.\n- Processes are automatically removed when they stop sending data (removed from supervisord.conf). Servers can be deleted manually.\n\n### Installation\n\nJust install it via pip:\n```\npip install djangovisor\n```\nOr clone the repository if you want to modify the code:\n```\ngit clone https://github.com/nleng/djangovisor\n```\n\nAdd 'djangovisor' to your installed apps in settings.py:\n```\nINSTALLED_APPS = [\n 'djangovisor',\n # ...\n]\n```\nInclude djangovisor in your url.py:\n```\nurl(r'^djangovisor/', include('djangovisor.urls')),\n```\nOn every server that should be monitored enable the xml web interface in your supervisord.conf:\n```\n[inet_http_server]\nport=*:9001\nusername=yourname\npassword=yourpassword\n```\nIf you use another port, you would have to change it in the sender.py script. Also, the port must not be blocked by the firewall, e.g.\n```\nufw allow 9001\n```\nSince supervisor does not send process cpu and memory information, we use a script sender.py, which you have to copy to any server you want to observe. \nYou have to change the user and password in the script sender.py. Then the simplest solution is to just run a cronjob, e.g. every minute:\n```\ncrontab -e\n* * * * * /usr/bin/python /path/to/sender.py\n```\nYou can also use the script sender_psutil.py if you prefer using the library psutil, which has to be installed. \n\nIf you want to you can change the default values in your settings.py:\n```\n# in seconds, should be the same as set in the crontab\nUPDATE_PERIOD = 60\n# maximum days to store data, only correct, if UPDATE_PERIOD is set correctly\nMAXIMUM_STORE_DAYS = 7\n```\nSet up your webserver and run:\n```\npython manage.py collectstatic\npython manage.py migrate\npython manage.py createsuperuser\n```\n\n### License\nBSD License.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://djangovisor.cfs-me-research.net/djangovisor/", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "djangovisor", "package_url": "https://pypi.org/project/djangovisor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djangovisor/", "project_urls": { "Homepage": "http://djangovisor.cfs-me-research.net/djangovisor/" }, "release_url": "https://pypi.org/project/djangovisor/0.9/", "requires_dist": null, "requires_python": null, "summary": "This app collects data from supervisor instances on one or multiple servers, stores and visualizes it.", "version": "0.9" }, "last_serial": 1575296, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "f6f19d8e8ca0657c410cd9c38f6bab08", "sha256": "4e1819e4e4c642fa7a144d3cdf94ae5f74721a7cd9eb16ff15f0aed17aa2f7cb" }, "downloads": -1, "filename": "djangovisor-0.9.tar.gz", "has_sig": false, "md5_digest": "f6f19d8e8ca0657c410cd9c38f6bab08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 172139, "upload_time": "2015-06-02T15:12:30", "url": "https://files.pythonhosted.org/packages/4c/24/73ec212ae7610501cff31cf25542da2a537400aee0f6c2f97ed6fc29c245/djangovisor-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f6f19d8e8ca0657c410cd9c38f6bab08", "sha256": "4e1819e4e4c642fa7a144d3cdf94ae5f74721a7cd9eb16ff15f0aed17aa2f7cb" }, "downloads": -1, "filename": "djangovisor-0.9.tar.gz", "has_sig": false, "md5_digest": "f6f19d8e8ca0657c410cd9c38f6bab08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 172139, "upload_time": "2015-06-02T15:12:30", "url": "https://files.pythonhosted.org/packages/4c/24/73ec212ae7610501cff31cf25542da2a537400aee0f6c2f97ed6fc29c245/djangovisor-0.9.tar.gz" } ] }