A small web-based monitoring dashboard for your linux pc/server writen in Python and Django + Chart.js.
A reusable django app for monitoring your linux server.
The dashboard is built using only Python libraries available in the main Python distribution, trying to create a small list of dependencies without the need of installing many packages or libraries.
There are 3 different refresh settings which are measured in `miliseconds`:
TIME_JS_REFRESH = 30000 #30 seconds
TIME_JS_REFRESH_LONG = 120000 #120 seconds
TIME_JS_REFRESH_NET = 2000 #2 seconds
If you wish to override the default settings, simply set those fields with the new values in your application's ``settings.py`` file.
The refresh settings for each table are as follows:
Memory Usage - TIME_JS_REFRESH
Load Average - TIME_JS_REFRESH
CPU Usage - TIME_JS_REFRESH
Traffic Usage - TIME_JS_REFRESH_NET
Disk Reads/Writes - TIME_JS_REFRESH_NET
Uptime - TIME_JS_REFRESH_LONG
Disk Usage - TIME_JS_REFRESH_LONG
Online Users - TIME_JS_REFRESH_LONG
Processes - TIME_JS_REFRESH_LONG
Netstat - TIME_JS_REFRESH_LONG
Remote data retrieval
=====================
###[pyDash remote data retrieval](https://github.com/k3oni/pydash/wiki/Remote-data-retreival)
pyDash allows you to retrieve data remotely.
Data is returned in JSON and can be easily retrieved as long as the user agent has been authenticated by the web application. For more information about how sessions are managed in Django, please click [here](https://docs.djangoproject.com/en/1.6/topics/http/sessions/).
pyDash has a list of short URLs which you can use to retrieve the specific data:
/info/uptime/ - Uptime
/info/platform/hostname/ - Hostname
/info/platform/osname/ - OS Name
/info/platform/kernel/ - Kernel
/info/getcpus/cpucount/ - Number of CPU cores
/info/getcpus/cputype/ - Type/Name of CPU
/info/memory/ - Memory Usage
/info/cpuusage/ - CPU Usage in percentage(%), free and used
/info/getdisk/ - Disk Usage
/info/getusers/ - Online Users
/info/getips/ - IP Addresses
/info/gettraffic/ - Internet Traffic
/info/getdiskio/ - Disk Reads/Writes
/info/proc/ - Running Processes
/info/loadaverage/ - Load Average
/info/getnetstat/ - Netstat
To see the format of the JSON returned, you can access any of the URLs from your browser, e.g. `http://demo.pydash.net/info/uptime/` .
OS Support
==========
pyDash was tested and runs under the following OSs:
pyDash was tested and runs under the following OSes:
- Centos
- Fedora
- Ubuntu
@ -55,7 +119,7 @@ pyDash was tested and runs under the following OSs:
- Arch Linux
Might work under others, but didn't get to test any other OSs just yet.
It might work under others, but it hasn't been tested yet.