Hi all,
I have been learning linux and have a secondary monitor that I wanted to use for showing some sensor data. Currently I need to manually enter in three commands and then arrange my windows each time I want to look at (and start-up, etc). I am using the nethogs, inxi, and lm-sensors libraries:
sudo nethogs
watch -n1 "inxi -s"
watch -n1 "sensors | grep Tdie"
The end result looks something like this:
https://i.ibb.co/TgWXKSn/sensors.png
Is it possible/easy to script the opening of these three terminal windows and position them onto a specific monitor? Or is there a completely different better way to go about this?
Also, is there a way for me to custom arrange the data on the screen? Eg, could I put the sensors "Tdie" data into two columns and remove the "high = +70.0 C" info?
[Beyond this specific case, is there a general solution with, say, a directory containing a separate shell script for launching each program, with a master script that specifies terminal width/height as well as (x,y) coordinates? --Ed.]
(Score: 1, Interesting) by Anonymous Coward on Thursday January 17 2019, @03:26AM (2 children)
Conky will do all that, term multiplexer will do it, your window manager will probably do it, wmutils might be able to do it (depends on your window manager supporting the calls it uses), you can write a custom script to aggregate all the information and do it as well. I think glances will show you all that info as well (https://nicolargo.github.io/glances/).
Personally, I like netdata for this type of stuff (https://my-netdata.io/). It is /really/ cool.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @03:41AM
I got:
So I couldn't quickly check it out at the moment but will take a look later. I see there are plugins to get the sensor data added to it. Thanks.
(Score: 2) by DannyB on Thursday January 17 2019, @04:28PM
Yes, to Glances.
https://nicolargo.github.io/glances/ [github.io]
https://github.com/nicolargo/glances [github.com]
https://www.tecmint.com/glances-an-advanced-real-time-system-monitoring-tool-for-linux/ [tecmint.com]
https://glances.readthedocs.io/en/stable/ [readthedocs.io]
https://linuxtechlab.com/linux-server-glances-monitoring-tool/ [linuxtechlab.com]
https://www.youtube.com/watch?v=ZwhyLD-wquk [youtube.com]
http://www.linuxbuzz.com/monitor-linux-servers-glances-tool/ [linuxbuzz.com]
Glances tool can also be used via Web Browsers
pkumar@linuxarena:~$ glances -w
Glances web server started on http://0.0.0.0:61208/ [0.0.0.0]
See Also:
nmon
http://nmon.sourceforge.net/pmwiki.php [sourceforge.net]
Collectl
http://collectl.sourceforge.net/ [sourceforge.net]
Dstat
http://dag.wiee.rs/home-made/dstat/ [dag.wiee.rs]
Other commands:
https://linux.die.net/man/1/iostat [die.net]
https://linux.die.net/man/1/sar [die.net]
https://linux.die.net/man/1/saidar [die.net]
https://linux.die.net/man/8/vmstat [die.net]
Linux vmstat Command Tutorial for Beginners (5 Examples)
https://www.howtoforge.com/linux-vmstat-command/ [howtoforge.com]
11 log files you should see on your Linux system
https://kerneltalks.com/errors/11-log-files-you-should-see-on-your-linux-system/ [kerneltalks.com]
Gotop – Yet Another TUI Graphical Activity Monitor, Written In Go
https://www.ostechnix.com/gotop-yet-another-tui-graphical-activity-monitor-written-in-go/ [ostechnix.com]
gtop: Awesome system monitoring dashboard for Linux/macOS Unix terminal
https://www.cyberciti.biz/howto/gtop-awesome-system-monitoring-dashboard-for-terminal/ [cyberciti.biz]
GTop
https://github.com/aksakalli/gtop [github.com]
VTop
https://github.com/MrRio/vtop [github.com]
People today are educated enough to repeat what they are taught but not to question what they are taught.