Project moved to Gitlab, sorry for the inconvenience!
k3oni / pydash Goto Github PK
View Code? Open in Web Editor NEWSmall web-based monitoring dashboard for linux in Python and Django
Small web-based monitoring dashboard for linux in Python and Django
Project moved to Gitlab, sorry for the inconvenience!
Could do this?
Hi Florian, First Thanks a Ton For This Tool. I request a extended pydash version to probe multiple Linux vm's/machines performance and display multiple machines in dashboard...Is this possible with current version. Can you please help and support on same.
OR This tool only works for one host ??
I need a similar tool to run on a cloud to monitor multiple vm's inside a cloud and report performance in dashboard. Please suggest same.
-Thanks.
I can do a NGINX or HAProxy reverse proxy to protect it, but I was curious is there was any support for this.
Hi,
I am running ubuntu 16.04
I have removed WSGISocketPrefix from the apache configuration to make it working.
Can you recheck if this setting is required as it works better without it ?
Just to let you know, this (mostly) works fine in OSX/Yosemite using the Django dev server:
git clone https://github.com/k3oni/pydash
cd pydash
edit pydash/settings.py and change the SECRET_KEY value
pip install -r requirements.txt
./manage.py syncdb
Enter the user information, to create your login user:
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'root'): admin (Enter your desired username)
Email address: [email protected] (Enter your email address)
Password: xxxxx (Enter your desired password)
Password (again): xxxxx (Enter your password again)
Run:
./manage.py runserver
A few things don't work on the dashboard (Memory Usage, IP Addresses, Internet Traffic, Disk Reads/Writes, Netstat, Processes), but I'm playing around to use this as a starting point to monitor other stuff.
The fancy CPU pie-chart seems to only show usage of one core. It's all red (full usage) for my server, but only one core of 32 is under full load.
Hey guys,
I have an openvz node and ip addr does not always show "state UP". I t will show an UNKNOWN even though network is going, so the command in the main.py fails and on top of it I dont think the awk statement works on all systems:
pydash]# ip addr | grep -A3 'state UP' | awk '{printf \"%s,\",$2}' |awk -F, '{print $1, $2, $3}'
awk: {printf \"%s,\",$2}
awk: ^ backslash not last character on line
I normally use the following:
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
or
ip add | grep inet\\s | grep -v 127.0.0.1 | awk '{ print $2 }' | sed 's/\/[0-9]\{1,\}//'
Just figured I would throw it out there.
The Install-pyDash wiki page claims:
For this how to i will be going over the following webservers: Apache, Nginx and Django internal dev server.
However, only instructions for apache2 are provided. I'd love to give pyDash ago but I don't have apache set up!
Hi,
This little program looks fun. But I just want to let you know that there's an memory issue with the js code. I am really not a js expert but you can check it in chrome using snapshots or other tools. In dashboard.js you keep create charts but you never delete them. I think it would be better to use the update method of Chart.js. You declare the charts in main.html and you update them in dashboard.js using the data returned by the usage/views.py functions.
pydash just for one server? IF I have 100 or more,,how can i use it
Hey, it would be so nice if you could add support for Arch Linux too.
I think a lot of people would like to add these analytics to an existing django project, I haven't tried it yet, but do you think it would be helpful to have that in the installation instructions as well?
IP Adresses and Internet Traffic tables are no longer working for me after upgrading from v1.1 to v1.4 on a Raspberry Pi (debian 7.2) with Apache.
ip addr | grep -A3 'LOWER_UP' | awk '{printf "%s,",$2}'|awk -F,, '{print $0}'
works fine in shell ofcourse.
Cannot tell whether bug or noob mistake.
The ../img/icons-sa7c41345d9.png image file is missing in style.css at the following lines: https://github.com/k3oni/pydash/blob/master/static/css/style.css#L1086-L1090
I See that last commit was made 3 years ago but i found this script really suitable for me. Is there chance to add historical charts like daily, weekly, monthy base?
That will make this Little program complete for me and imho for many other users.
Thanks upfront for replying!
Hi Florin,
You can use https://docs.djangoproject.com/en/dev/topics/auth/default/#the-login-required-decorator to avoid checking if the user is authenticated in your views and also https://github.com/jsocol/django-jsonview/blob/master/jsonview/decorators.py#L23 to return json.
The img/favicon.ico icon file is missing from the project and is referenced here: https://github.com/k3oni/pydash/blob/master/templates/base_auth.html#L6
Trying to install your lovely-looking package on Ubuntu 20.04 with Apache. Python 2 is now deprecated, python-pip
is no longer available (now python3-pip
), python
is now called python-is-python2
.
Install procedure bails out at this point:
john@fileserver:/var/www/pydash$ sudo ./manage.py syncdb
Traceback (most recent call last):
File "./manage.py", line 8, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
john@fileserver:/var/www/pydash$
Discussion welcome.
The font file PRmiXeptR36kaC0GEAetxi8cqLH4MEiSE0ROcU-qHOA.ttf referenced @ https://github.com/k3oni/pydash/blob/master/static/css/fonts.css#L23 is missing from the repository
I'm getting this warning every few minutes:
DataTables warning (table id = 'get_netstat'): Requested unknown parameter '1' from the data source for row 0
General info:
OS: debian 7.5
Uptime: 13:11:58 Hours
Hostname: ****
Kernel: 3.2.0-4-amd64
CPU(s): 8 x Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz
Using pyDash v1.4.4.
I am seeing this error popping up occasionally, usually directly after logging in or after reloading the page, but once in a while it might also occur when tables are being updated:
DataTables warning (table id = 'get_users'): Requested unknown parameter '0' from the data source for row 0
Add disk i/o metrics
Server error I gets after passing credentials into login system of pydash.
Footprint in apache2 logs:
[wsgi:warn] [pid 28372:tid 139790316758912] mod_wsgi: Compiled for Python/2.7.8.
[wsgi:warn] [pid 28372:tid 139790316758912] mod_wsgi: Runtime using Python/2.7.9.
Error Log configured in vhosts stays empty.
Using Debian 8 wheezy.
A feature request, really: If possible, I think a shutdown/restart button in the GUI would be great.
I followed the instructions of using pyDash with Nginx + Gunicorn, with the exception of cloning the repo into a directory that's not owned by a normal user (actually owned by nginx, where I put all my server apps), and installing it into a virtualenv
.
But when I run the server with:
sudo gunicorn -b 0.0.0.0:25304 wsgi
Page on my browser shows Internal Server Error
, and the following crap got spit out in my console:
https://gist.github.com/SammDu/b3b0867210540bf52e883cb87c648ab3
(Yup please click on the link to the gist cuz it's a nightmare to paste it directly in here lol)
Yeah so that where I'm stuck at and please take a look, thanks very much!
BTW if you want a record of what I did from the very beginning,
please take a look at this gist:
https://gist.github.com/SammDu/41fbe3e16b37ec62a838a2093b186b06
The "general info" box for my 32-core server is huge, because each core is listed individually. A bit of summarization would be nice.
Current state:
General Info |
---|
CPU(s): 32 x Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz model name : Intel(R) etc |
Ideal state:
General Info |
---|
CPU(s): 32 x Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz |
settings.py contains a pre-set SECRET_KEY and the installation instructions do not advise users to change it.
Hi,
so i followed your instructions on ubuntu/nginx but when trying to start gunicorn i get the following error:
2014-02-24 08:05:21 [13759] [ERROR] Exception in worker process: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 495, in spawn_worker worker.init_process() ....... ImportError: No module named wsgi
i'm not sure what do do. does anybody have an idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.