{ "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": "# django-monit-collector\n\nThis is a django project, which collects data from monit instances on one or multiple servers, stores them and visualizes them using bootstrap and the javascript library dygraphs. Example website: http://monitcollector.cfsme-network.de\n\nThere is a very similar app for the server monitoring tool supervisor called djangovisor.\n\n\n### Features\n- Collects and parses monit xml data from one or multiple servers. \n- Stores the data for a given time period. \n- Displays it in pretty graphs. \n- Start/stop/restart buttons for processes.\n- Status tables and graphs are refreshing automatically via ajax.\n- Processes are automatically removed when they stop sending data (removed from monitrc). Servers can be deleted manually.\n\n### Installation\n\nJust install it via pip:\n```\npip install django-monit-collector\n```\nOr clone the repository if you want to modify the code:\n```\ngit clone https://github.com/nleng/django-monit-collector\n```\n\nAdd 'monitcollector' to your installed apps in settings.py:\n```\nINSTALLED_APPS = [\n 'monitcollector',\n # ...\n]\n```\nIf you want to you can change the default values in your settings.py:\n```\n# should be the same as set in the monitrc file e.g. \"set daemon 60\"\nMONIT_UPDATE_PERIOD = 60\n# maximum days to store data, only correct, if MONIT_UPDATE_PERIOD is set correctly\nMAXIMUM_STORE_DAYS = 7\n```\nInclude monitcollector in your url.py:\n```\nimport monitcollector.urls as m_urls\n\nurl(r'^monitcollector/', include(m_urls)),\n```\nCreate/sync the database and create a superuser (you need to login to access the monit-collector dashboard):\n```\npython manage.py syncdb\n```\nCollect static files:\n```\npython manage.py collectstatic\n```\nWith correct webserver configurating the app should then be available at http://mydomain.com/monitcollector/. \n\nIn your monitrc file add this line to send data to the collector.\n```\nset mmonit http://mydomain.com/monitcollector/collector\n```\nIf you want to enable the start/stop buttons (optional), the monit http daemon must be available, in monitrc (you can also)\n```\nset httpd port 2812\n allow myuser:mypassword\n```\nIf you don't want to allow access from everywhere add \"allow ip.address...\" with the ip address of the server, where monitcollector is installed. \nThe user and password have to be set in the settings.py:\n```\nENABLE_BUTTONS = True\nMONIT_USER = youruser\nMONIT_PASSWORD = yourpassword\nMONIT_PORT = 2812\n```\nYou don't have to specify the port if you use the default port 2812. Also, the port must not be blocked by the firewall, e.g. \n```\nufw allow 2812\n```\n\nYou can also monitor this app with monit itself. Not using the privided script lead to error in my case.\n```\ncheck process monitcollector with pidfile /path/to/pid/gunicorn.pid\n start program = \"/project/path/gunicorn.sh start\"\n stop program = \"/project/path/gunicorn.sh stop\"\n if failed host 127.0.0.1 port 8011 protocol http then restart\n if 5 restarts within 5 cycles then alert\n```\nThen you should have the same port and pid path in your gunicorn.conf\n```\nbind = '127.0.0.1:8011'\n...\npidfile = '/path/to/pid/gunicorn.pid' \n```\n\n### License\nBSD License.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://monitcollector.cfs-me-research.net/monitcollector/", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-monit-collector", "package_url": "https://pypi.org/project/django-monit-collector/", "platform": "", "project_url": "https://pypi.org/project/django-monit-collector/", "project_urls": { "Homepage": "http://monitcollector.cfs-me-research.net/monitcollector/" }, "release_url": "https://pypi.org/project/django-monit-collector/0.8/", "requires_dist": null, "requires_python": "", "summary": "This app collects data from monit instances on one or multiple servers, stores them and visualizes them.", "version": "0.8" }, "last_serial": 4707230, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "3eebcf2752289311024a6069008e9fcd", "sha256": "fc2fa270d71b206a9d059dc55f651c4541ba1e68cc161a8250677a8d762aff24" }, "downloads": -1, "filename": "django-monit-collector-0.5.zip", "has_sig": false, "md5_digest": "3eebcf2752289311024a6069008e9fcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 176711, "upload_time": "2015-06-01T08:59:29", "url": "https://files.pythonhosted.org/packages/4c/db/5dfc3881d4d52dd224e3ad62480b4b667750250f98ee112c664a915c2307/django-monit-collector-0.5.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "66e85cc6d4d3baffd2860e71614623ac", "sha256": "a7f799a565383df2827367dba4c244e71471be97916ec930c33c1bb989bd58c4" }, "downloads": -1, "filename": "django-monit-collector-0.6.tar.gz", "has_sig": false, "md5_digest": "66e85cc6d4d3baffd2860e71614623ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 166884, "upload_time": "2015-06-01T09:20:31", "url": "https://files.pythonhosted.org/packages/59/21/9d227c6fa0d312602b68fa89c3648e0cecb4ec3bf847f9229cf055b63083/django-monit-collector-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "6cf4e3649040235022af11bd92fd6aab", "sha256": "f6fa8f0724eddf56fcccb22e173c3fcc7812d3fdf454d8773861dc410f7feb5f" }, "downloads": -1, "filename": "django-monit-collector-0.7.tar.gz", "has_sig": false, "md5_digest": "6cf4e3649040235022af11bd92fd6aab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 167446, "upload_time": "2015-06-02T11:52:14", "url": "https://files.pythonhosted.org/packages/ac/be/1b1b020b9a3675d8934b8118f897968dc25278ad26eb6351692fdbe0ce78/django-monit-collector-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "adedeb16fce5a8e1fc0bd0156b05abaf", "sha256": "ecacdc32076b1bd033365931a06fea19f88e244776894e0ec887c6f44237ea07" }, "downloads": -1, "filename": "django-monit-collector-0.8.tar.gz", "has_sig": false, "md5_digest": "adedeb16fce5a8e1fc0bd0156b05abaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 166695, "upload_time": "2019-01-17T09:46:26", "url": "https://files.pythonhosted.org/packages/58/76/f5864b7c27e9022191d2f908209beaf203a4eade0a8b3f39b152ea1374fd/django-monit-collector-0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "adedeb16fce5a8e1fc0bd0156b05abaf", "sha256": "ecacdc32076b1bd033365931a06fea19f88e244776894e0ec887c6f44237ea07" }, "downloads": -1, "filename": "django-monit-collector-0.8.tar.gz", "has_sig": false, "md5_digest": "adedeb16fce5a8e1fc0bd0156b05abaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 166695, "upload_time": "2019-01-17T09:46:26", "url": "https://files.pythonhosted.org/packages/58/76/f5864b7c27e9022191d2f908209beaf203a4eade0a8b3f39b152ea1374fd/django-monit-collector-0.8.tar.gz" } ] }