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.

162 lines
3.7 KiB

  1. pyDash - v1.4.6
  2. ===============
  3. A reusable django app for monitoring your linux server.
  4. Supported Python versions:
  5. ::
  6. Python 2.x
  7. Python 3.x
  8. Requirements:
  9. ::
  10. Django >= 1.5
  11. Installation
  12. ============
  13. Clone the repository to your pc and, assuming that ``pip`` is installed,
  14. run the following commands:
  15. - ``python setup.py sdist``
  16. - ``pip install dist/django-pydash-app-*.tar.gz``
  17. Make sure that ``django.contrib.auth`` is installed and working.
  18. Open your project’s ``settings.py`` and add ``pydash`` to
  19. ``INSTALLED_APPS``:
  20. ::
  21. INSTALLED_APPS = (
  22. 'pydash',
  23. )
  24. Open your project’s ``urls.py`` and include the ``pydash`` urls.
  25. ::
  26. urlpatterns = patterns('',
  27. (r'^pydash/', include('pydash.urls')),
  28. )
  29. Make sure ``AppDirectoriesFinder`` is enabled in your
  30. ``STATICFILES_FINDERS``:
  31. ::
  32. STATICFILES_FINDERS = (
  33. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  34. )
  35. Before deploying to a live server, run the following command in order to
  36. collect the static files stored in pydash’s directory:
  37. ::
  38. $ python manage.py collectstatic
  39. Settings
  40. ========
  41. There are 3 different refresh settings which are measured in
  42. ``miliseconds``:
  43. ::
  44. TIME_JS_REFRESH = 30000 #30 seconds
  45. TIME_JS_REFRESH_LONG = 120000 #120 seconds
  46. TIME_JS_REFRESH_NET = 2000 #2 seconds
  47. If you wish to override the default settings, simply set those fields
  48. with the new values in your application’s ``settings.py`` file.
  49. The refresh settings for each table are as follows:
  50. ::
  51. Memory Usage - TIME_JS_REFRESH
  52. Load Average - TIME_JS_REFRESH
  53. CPU Usage - TIME_JS_REFRESH
  54. Traffic Usage - TIME_JS_REFRESH_NET
  55. Disk Reads/Writes - TIME_JS_REFRESH_NET
  56. Uptime - TIME_JS_REFRESH_LONG
  57. Disk Usage - TIME_JS_REFRESH_LONG
  58. Online Users - TIME_JS_REFRESH_LONG
  59. Processes - TIME_JS_REFRESH_LONG
  60. Netstat - TIME_JS_REFRESH_LONG
  61. Remote data retrieval
  62. =====================
  63. pyDash allows you to retrieve data remotely.
  64. Data is returned in JSON and can be easily retrieved as long as the user
  65. agent has been authenticated by the web application.
  66. pyDash has a list of short URLs which you can use to retrieve the
  67. specific data:
  68. ::
  69. /info/uptime/ - Uptime
  70. /info/platform/hostname/ - Hostname
  71. /info/platform/osname/ - OS Name
  72. /info/platform/kernel/ - Kernel
  73. /info/getcpus/cpucount/ - Number of CPU cores
  74. /info/getcpus/cputype/ - Type/Name of CPU
  75. /info/memory/ - Memory Usage
  76. /info/cpuusage/ - CPU Usage in percentage(%), free and used
  77. /info/getdisk/ - Disk Usage
  78. /info/getusers/ - Online Users
  79. /info/getips/ - IP Addresses
  80. /info/gettraffic/ - Internet Traffic
  81. /info/getdiskio/ - Disk Reads/Writes
  82. /info/proc/ - Running Processes
  83. /info/loadaverage/ - Load Average
  84. /info/getnetstat/ - Netstat
  85. To see the format of the JSON returned datasets or data you can access any of the URLs from your browser
  86. as http://youpydaship/url , ex. http://demo.pydash.net/info/uptime/ .
  87. OS Support
  88. ==========
  89. pyDash was tested and runs under the following OSes:
  90. ::
  91. - Centos
  92. - Fedora
  93. - Ubuntu
  94. - Debian
  95. - Raspbian
  96. - Pidora
  97. - Arch Linux
  98. It might work under others, but it hasn’t been tested yet.
  99. Contributors
  100. ============
  101. George Zografos - george.p.zografos@gmail.com
  102. License
  103. =======
  104. `MIT <https://github.com/k3oni/pydash-django-app/blob/master/LICENSE.md>`_
  105. Issues
  106. ======
  107. Report any issues/bugs at `https://github.com/k3oni/pydash-django-app <https://github.com/k3oni/pydash-django-app>`_
  108. Credits
  109. =======
  110. `Dashboard Template <http://www.egrappler.com/templatevamp-free-twitter-bootstrap-admin-template/>`_, `Bootstrap <http://getbootstrap.com/>`_, `Font Awesome <http://fontawesome.io/>`_