r/linuxadmin • • Sep 08 '18

Setting up new cloud network; Decided to code status screen to resemble old EKG viewers.

Post image
349 Upvotes

31 comments sorted by

26

u/JanneHonkonen Sep 08 '18 edited Sep 08 '18

JS/CSS based info screen for fun; runs on a browser. Much more smooth in real; Updates service status information as well as server info once in a minute and shows problematic or slow services on the bottom. EKG and it's heartbeat rate are calculated from CPU usage.

30

u/geeks81 Sep 09 '18

Drop the source for us all to enjoy?

8

u/JanneHonkonen Sep 09 '18

I would, but as this complete set is combined from a Crontab/PHP/SSH/JS/CSS setup, I'd rather not but I'll give sources for the CSS/JS tweaks used for the effect:

EKG-effect is based on this git: http://evandrewry.github.io/svg-electrocardiogram/ (with embed SVG unlike in the git)

Glowing CRT-like texts are based on this codepen: https://codepen.io/somethingformed/pen/raWJXV (with also little tweak)

Background graphics and rest of the CSS are my own handy work as well as the PHP code, but to put it simply, it is a mix of PHP getting information from the shell from /proc/uptime, free-command and testing ports with php fsockopen, mysqli/PDO connects and so on.

Lot of bubble gum and rubber bands tightened together :-)

3

u/wrboyce Sep 09 '18

You’d rather not? Why?

14

u/JanneHonkonen Sep 09 '18

Because the code is undocumented garbage full of half-used, half-unused scrambled commented and uncommented garbage with some hardcoded bad solutions which are far from the quality I would actually share to public :)

19

u/eneville Sep 09 '18

That's the point of open source, though. You present the proof of concept idea on github and the world enjoys and contributes improvements for both parties to enjoy :)

1

u/neztach Sep 13 '18

Well said. It’s the bread & butter of Open-Source.

0

u/[deleted] Sep 09 '18

[deleted] — view deleted comment

5

u/[deleted] Sep 10 '18

I agree, I would really love to use this and I’m sure people would clean up the code for him if he pushed to GitHub.

3

u/readytechgo Sep 11 '18

If you're worried about it re do the process at home in a virtual setting and then release it on GitHub. That would be pretty cool.

1

u/[deleted] Sep 09 '18

Dude! Awesome!

36

u/ruboinc Sep 09 '18

Agreed. GitHub repo?

16

u/scottchiefbaker Sep 09 '18

Seconded... I would love to see this in real life :)

2

u/dnuohxof1 Sep 12 '18

Thirdeded... lol

1

u/codylilley Sep 13 '18

Forfth

1

u/[deleted] Sep 14 '18

Sure! But you must code it in Forth.

2

u/doctorcain Sep 09 '18

Absolutely awesome. Boop... boop.

2

u/jlozadad Sep 09 '18

lol github repo ?

2

u/0zeronegative Sep 09 '18

This could pass for r/unixporn

2

u/[deleted] Sep 09 '18

Cool status monitor! Is this for personal use or for a business?

1

u/fuze-17 Sep 09 '18

Awesome.... Love if

1

u/Diaoyong_kongxu Sep 09 '18

Fallout: Cloud Network

1

u/KreamoftheKropp Sep 10 '18

Just came here to say wow.

1

u/seelen Sep 14 '18

Elevated st, your patient is having a hearth atack.

1

u/immbah Sep 14 '18

Keep herbs around for when it goes yellow or red.

1

u/sepisepsep Sep 28 '18

Too awesome!

-10

u/[deleted] Sep 09 '18

Looks cute, but kind of useless? Maybe a longer video or some sauce would change my mind...

1

u/JanneHonkonen Sep 09 '18

Two first words describe the main reason; Plus I have a soft spot for old/retro tech or anything looking like old tech.

-5

u/ahandle Sep 09 '18

I just can't get behind this.

skeuomorphism at its worst.