You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.5 KiB

12 years ago
  1. pyDash - v1.4.4
  2. ===============
  3. A reusable django app for monitoring your linux server.
  4. Supported Python versions:
  5. - Python 2.x
  6. Requirements:
  7. - Django >= 1.5
  8. Installation
  9. ============
  10. Clone the repository to your pc and, assuming that ``pip`` is installed,
  11. run the following commands:
  12. - ``python setup.py sdist``
  13. - ``pip install dist/django-pydash-app-*.tar.gz``
  14. Make sure that ``django.contrib.auth`` is installed and working.
  15. Open your project’s ``settings.py`` and add ``pydash`` to
  16. ``INSTALLED_APPS``:
  17. ::
  18. INSTALLED_APPS = (
  19. 'pydash',
  20. )
  21. Open your project’s ``urls.py`` and include the ``pydash`` urls.
  22. ::
  23. urlpatterns = patterns('',
  24. (r'^pydash/', include('pydash.urls')),
  25. )
  26. Make sure ``AppDirectoriesFinder`` is enabled in your
  27. ``STATICFILES_FINDERS``:
  28. ::
  29. STATICFILES_FINDERS = (
  30. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  31. )
  32. Before deploying to a live server, run the following command in order to
  33. collect the static files stored in pydash’s directory:
  34. ::
  35. $ python manage.py collectstatic
  36. Settings
  37. ========
  38. There are 3 different refresh settings which are measured in
  39. ``miliseconds``:
  40. ::
  41. TIME_JS_REFRESH = 30000 #30 seconds
  42. TIME_JS_REFRESH_LONG = 120000 #120 seconds
  43. TIME_JS_REFRESH_NET = 2000 #2 seconds
  44. If you wish to override the default settings, simply set those fields
  45. with the new values in your application’s ``settings.py`` file.
  46. The refresh settings for each table are as follows:
  47. ::
  48. Memory Usage - TIME_JS_REFRESH
  49. Load Average - TIME_JS_REFRESH
  50. CPU Usage - TIME_JS_REFRESH
  51. Traffic Usage - TIME_JS_REFRESH_NET
  52. Disk Reads/Writes - TIME_JS_REFRESH_NET
  53. Uptime - TIME_JS_REFRESH_LONG
  54. Disk Usage - TIME_JS_REFRESH_LONG
  55. Online Users - TIME_JS_REFRESH_LONG
  56. Processes - TIME_JS_REFRESH_LONG
  57. Netstat - TIME_JS_REFRESH_LONG
  58. Remote data retrieval
  59. =====================
  60. pyDash allows you to retrieve data remotely.
  61. Data is returned in JSON and can be easily retrieved as long as the user
  62. agent has been authenticated by the web application.
  63. pyDash has a list of short URLs which you can use to retrieve the
  64. specific data:
  65. ::
  66. /info/uptime/ - Uptime
  67. /info/platform/hostname/ - Hostname
  68. /info/platform/osname/ - OS Name
  69. /info/platform/kernel/ - Kernel
  70. /info/getcpus/cpucount/ - Number of CPU cores
  71. /info/getcpu
  72. Issues
  73. ======
  74. Report any issues/bugs at `https://github.com/k3oni/pydash-django-app <https://github.com/k3oni/pydash-django-app>`_