Coder Social home page Coder Social logo

pydash's Introduction

pyDash - v1.4.6

Project moved to Gitlab, sorry for the inconvenience!

pydash's People

Contributors

alibitek avatar bitdeli-chef avatar gbourdin avatar jordanmilne avatar k3oni avatar mdisec avatar peterbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pydash's Issues

Request For PyDash In Virtualized Environment

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.

How should I do HTTPS?

I can do a NGINX or HAProxy reverse proxy to protect it, but I was curious is there was any support for this.

WSGISocketPrefix issue

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 ?

Works on OSX

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.

CPU info for multiple cores

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.

IP Address grep doesnt always work

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.

JS memory leak

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.

About install

pydash just for one server? IF I have 100 or more,,how can i use it

Arch Linux

Hey, it would be so nice if you could add support for Arch Linux too.

Adding to existing django project

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?

Network tables not working

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.

Historical data

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!

Python 2 deprecated in Ubuntu 20

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.

Another DataTables warning

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.

DataTables warning

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

500 Server Error

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.

shutdown/restart button

A feature request, really: If possible, I think a shutdown/restart button in the GUI would be great.

"Internal Server Error" when accessing pyDash

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

Condense CPU info for multicore servers

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

No module named wsgi

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.