tariqbuilds / linux-dash Goto Github PK
View Code? Open in Web Editor NEWA beautiful web dashboard for Linux
Home Page: https://afaqurk.github.io/linux-dash/
License: MIT License
A beautiful web dashboard for Linux
Home Page: https://afaqurk.github.io/linux-dash/
License: MIT License
I'm working in my fork on OSX support
Do you think it's something that should be added to this project?
Hey, I don't see a license on this? It'd be good to know what license you'd like to use.
hey its neat n clean its looks awesome. I have a suggestion how about adding some sensors information with CPU and MB temps .
Without wanting to overwhelm @afaqurk with bureaucratic busywork, having some concrete goals (or non-goals) listed in, say, the readme, will make contributing easier. Two specific questions I'd like answered are targeted PHP version and targeted browsers. The former is obvious -- in case of the latter, targeting only recent browsers (which I'd personally suggest as reasonable considering the target audience) may allow for simplifying parts of the code (mainly CSS). Something else to consider could be what platforms are of interest but I don't personally have a stake in that.
This can be extended to include stuff like coding style or expectations of tests where applicable.
Primarily, what does afaqurk want from this project? Secondarily, what does everyone else want?
Very nice and interesting project! Just want to signal a small typo in the green header stripe of your demo app: Linux Bootstrap Dashboad
Would be a great and useful feature to be able to create/manage notifications based on threshold parameters set by the user. Example: email alert if load average > 95%, or available disk space < 2gb.
I know this can be set up manually directly on the machine, but a homogeneous interface with which to monitor your server would be a great value added.
When clickin secondary navbar links, to local locations on the current page, it incorrect links to right location.
When clicking "Disk" you see this: http://img.liamstanley.net/Sun_Jan_26_11_49_59.png
When you SHOULD see this: http://img.liamstanley.net/Sun_Jan_26_11_50_46.png
speed.php is giving 500 internal server error which is why speed is always 0 for me
The scripts work but when they are called from the page, they don't
here is the page http://162.243.14.225/
Here is the screenshot:
adding following codes to base.js #after line 24
var idName = event.target.id;
if (idName == "") {
var idName = $(event.target).parent("div").attr("id");
}
var item = idName.split("-").splice(-1)[0];
$ php5 df.php
df: no file systems processed
[]
What does df -h
(the df.php command being run) do on your server? Perhaps there's a 10.04 equivalent.
This is a discussion about the merits and demerits of adding a build step. It deals specifically with minified files, which @afaqurk has expressed desire for, but the question is broader than that.
If there is need of auto-generating files a formal build step should be added. This ensures such files are generated consistently and eliminates menial tasks prone to user error. It then becomes necessary to decide when and how.
The build step can either happen before deployment or be treated as deployment. Advantages and disadvantages are presented below.
Favours deployment. With every push the application is immediately deployable. Files needing building are included directly in the repository and are used by default. This is truest to the idea of "drop-in, minimal-dependency" -- simply pulling in the latest changes is sufficient to upgrade -- but comes at a development cost. You generally can't diff or merge generated files, and developers may simply forget to complete the build step.
Favours development. The application is not immediately deployable in production form, though you would always be able to deploy the development version. Developers won't have to worry about issues resulting from conflicting generated files or forgetting the build step, but in turn the production server will have a dependency on whatever tool is chosen. It is possible to generate regular "releases" for situations where installing dependencies on the production server is strictly no-go, if there are any such.
These are tools I have personal experience with. There are other alternatives but I don't know anything about them, though all candidates are worthy of consideration. Node.js options are attractive because a number of the most actively maintained projects are based on Node.js. Unfortunately, Node.js is messy.
Will it be worth adding functionality to detect OS architecture? (32/64-bit). This could be done quite easily and added underneath hostname in General Info.
$ php5 top.php
[[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null]]
I have written some functionality to monitor software installation's from a list in a file rather than a default hard-coded list. Would this be worth adding in?
Having this option will allow more flexibility in what software to check for.
Would this work on a Raspberry Pi? Going to try it out later on mine and see if it works but wasn't sure if there was official support for it.
Merge from PR #11 broke javascript function generate_os_data().
Response type is now json so $(element).text(data); won't work
If anyone can confirm, solution is simple, just add dataType as html in $.get
All third-party JS and CSS is available from reliable public CDNs. One or two are already referencing CDNs but most files are included in the repository.
I propose either eliminating all CDNs or using only CDNs, with a preference for the latter. The former removes a dependency on an Internet connection while the latter reduces maintenance.
Is it measuring the current upload or does it do a speed test?
I believe this would be a worthwhile change as the correct path might no always be setup or used. This has already been done in some of the sh/ php scripts but not all of them.
e.g. in the example screenshot you provide, \n and \l. On my fedora core 20 system, it says S: Fedora release 20 (Heisenbug) Kernel \r on an \m (\l)
Could need some help the first part of the issue, though. Any takers?
Your software looks super cute, look forward to using it in future once the license is clear and the bugs are stomped :-) If I get any free time I'll see if I can patch something.
I would suppose this should be able to shutdown the machine and reboot it? It would not make sense to just hard shutdown the machine without it rebooting.
Thoughts?
I am not sure but I think there should be a security check because this website opens the important information to the internet. So, it would be nice something like an optional login page and authorization mechanism.
I double checked that yes, the computer is connected to the internet. I remember the earlier versions of linux-dash worked fine, but it doesn't now.
Has the Internet Speed meter switched to only reporting used bandwidth, or what? (If so, that would explain it - my server sits idle most of the time...)
Cute, but currently it takes 3 seconds. 1 second would be more than enough. Quite irritating to wait. If I press the refresh button it's because I want new info NOW.
Subject says it all.
With the new script compressor.php I obtain the following error message:
Unable to create dwccache cache folder
The error comes from the line 63 of compressor.php.
The problem is easily fixed by creating manually the dwccache folder with 777 permissions (or www-data as the owner).
It should maybe be added in the installation instructions...
Awesome project!
I've put together some configuration info for nginx if you want to roll into the docs.
Add a small searchbox to filter through processes by name
I'm running linux-dash on an small ARM based NAS running Debian Wheezy and in my case /proc/cpuinfo contains no matches for ^processor. The output is similar to the following:
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1980.82
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Hardware :
Revision :
Serial :
That said, nproc returns a fairly reliable figure (of 1 in this case) - so may be a more reliable fallback?
In my dev server, I am getting this:
OS:
Uptime: 121Hours
Hostname:
Internet Speed: 0 KB/s
But if i execute php ./hostname.php I am getting debian, so I am not sure what's happening. probably a bug
EDIT: ok, the internet speed takes some time to update. so the problem is only the OS and hostname.
This is awesome, but I have some suggestions.
Seeing as how the Internet Speed is just a JS function that downloads an image from google, the metric is for the client not the server.
This is pretty irrelevant on a server status page I would think.
Should be another PHP script that does something similar.
It is very non-obvious how this is being measured and it doesn't correspond well with speeds we measure directly. (e.g. reports 7Mb on a server we pull 500Mb/s from easily)
912,221 KB/s
That would be amazing, but the speed is actually 912,221 B/s, not KB/s.
$ php speed.php
outputs 81.4
if that helps.
Would be nice if all values could be updated without the need to manually reload.
Hi,
I really like this dashboard. The only thing is that the RAM usage displayed by the dashboard is very different than the RAM usage displayed by landscape-sysinfo (Ubuntu server)
The attached screenshots were made at the same time.
Ths dashboard displays usage of 73%, while landscape-sysinfo displays only 29%
EDIT:
All of the scripts in /sh/ return JSON, but the Content-Type
header is being sent as text/html
. This will cause XSS issues when attacker-controlled strings in the JSON are interpreted as HTML.
header('Content-Type: application/json; charset=UTF-8');
should be called before echoing anything to prevent this.
I did a git pull this morning and I notice that internet speed section is no longer working.
would be nice to have simple installation procedure in readme.
I have just extracted zip in separate folder under var/www, and had to change all exec (something, $result) to $result = shell_exec (something). Now, I have columns in tables, but still no content in tables. I suppose that it have something to do with installation, permissions, etc...
Could you please specify what sort of Licence the dashboard is released under?
On Arch with nginx + php-fpm, where.php
doesn't detect any of the installed software.
Error log:
"/usr/bin/which: no php in ((null))"
This can be fixed by setting the PATH
correctly:
exec('PATH=/usr/bin /usr/bin/which ' . escapeshellarg($b), $which, $return_var);
This works for Arch, but certainly won't on other distros. Maybe there's a better way of retrieving the correct PATH
?
It would be great to be able to install multi metric packages on your servers and have a single dashboard read those.
The server settings could be in some kind of Json file.
Any opinions?
SOFTWARE INSTALLATION
apache2: /usr/bin/openssl
vsftpd: /usr/bin/make
What is it meant to be? Makes no sense.
Would be better to run --version on each app and return the result. Or extract it from the package manager.
So two issues:
After updating just now (2014-02-12 7:30 am EST), reloading the page or refreshing the network statistics widget, always triggers this error popup:
The page at <ip_address> says:
DataTables warning (table id = 'netstat_dashboard'):
Requested unknown paremter '1' from the data source for
row 0
In the attached screencap you can see the row zero showing blank IP, I think this row corresponds to the nstat widget connection, refreshing the widget increments this number:
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.