New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Built a Real Time Server Resource Monitor using websockets
So I built a real time Linux server resource Monitor using Node.js, Socket.io and d3.js.
code : https://github.com/Leo-G/LMON
I wanted to learn about websockets hence built it. It's fast, uses sockets and uses gauges to display cpu n memory information
if anyone else is interested in this technology and wants to contribute feel free to send me a pull request
Comments
Very nice!
Pretty much like the idea and the code looks quite clean (just the formatting of "updateGauges()" got somehow messed up).
nice, scoutapp also has a cool realtime monitoring tool written in ruby. https://scoutapp.github.io/scout_realtime/
scoutapp, looks nice as well are they using web sockets as well?
You should really be using === in almost all cases, == is evil as it does type conversion.. Unless you're absolutely sure what's being return is always (and I mean always) what you expect, string int etc...
http://appendto.com/2016/02/==-vs.===-equality-in-javascript
http://stackoverflow.com/questions/359494/does-it-matter-which-equals-operator-vs-i-use-in-javascript-comparisons
Thx will keep this in mind
No worries! Just make sure it becomes a habit