LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2021, 07:01 AM   #1
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Rep: Reputation: Disabled
Question Anyone have a stoplight app monitoring CPU usage?


Pick your threshold:

Green < 21% system is relatively dormant
21% < Yellow < 79% moderate running zone
Red > 79% (wait for any new commands)
 
Old 05-20-2021, 08:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by JASlinux View Post
Pick your threshold:

Green < 21% system is relatively dormant
21% < Yellow < 79% moderate running zone
Red > 79% (wait for any new commands)
Is there a question here?

Yes, there are MANY system monitoring apps for both CLI and GUI. And applets for the different desktops/panels, all configurable in different ways. Are you asking us to look some up for you?? Either way, you need to (again) provide details and ask a clear question, and show us your own efforts.
 
Old 05-20-2021, 08:50 AM   #3
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Is there a question here?
The question is in the title, and the effort is a bewildering array of options.

Parallel: weather apps on Android

The one I use displays C/F simultaneously. That eliminates most apps.

If someone knows of or uses a CPU monitor that is color-coded, that is what I seek, otherwise inside hints on how to find one myself.

I don't know the terminology, but that is the function.
 
Old 05-20-2021, 09:03 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by JASlinux View Post
The question is in the title, and the effort is a bewildering array of options.
Parallel: weather apps on Android
..and this means you need to actually LOOK at the different options, and pick which features you want, and narrow down the list, doesn't it?? As in, showing some efforts.
Quote:
The one I use displays C/F simultaneously. That eliminates most apps. If someone knows of or uses a CPU monitor that is color-coded, that is what I seek, otherwise inside hints on how to find one myself. I don't know the terminology, but that is the function.
Yes, restating your question does absolutely NOTHING. AGAIN:
  • GUI or CLI?
  • If GUI, which desktop environemnt?
  • Stand alone on desktop?
  • Widget/panel app?
  • How often to update? Continuous? Once?
You don't need 'inside hints' on how to find one...did you try putting "linux cpu monitor" into Google and pressing ENTER? Over ten million hits; narrow it down by putting "linux cpu monitor gnome panel", or "linux cpu monitor CLI", etc., and look through them. Pick any that you'd like...read about them; try them to see if they do what you want.

htop does some of this already, and is (again) one of the hits you can find with a simple search. Again, read the "Question Guidelines" link and do basic research first:
https://www.linuxquestions.org/quest...or-4175694544/
https://www.linuxquestions.org/quest...ne-4175694467/
https://www.linuxquestions.org/quest...ce-4175693752/
https://www.linuxquestions.org/quest...es-4175694097/

Last edited by TB0ne; 05-20-2021 at 09:10 AM.
 
Old 05-20-2021, 01:03 PM   #5
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
  • GUI or CLI?
  • If GUI, which desktop environemnt?
  • Stand alone on desktop?
  • Widget/panel app?
  • How often to update? Continuous? Once?
You don't need 'inside hints' on how to find one...did you try putting "linux cpu monitor" into Google and pressing ENTER? Over ten million hits; narrow it down by putting "linux cpu monitor gnome panel", or "linux cpu monitor CLI", etc., and look through them. Pick any that you'd like...read about them; try them to see if they do what you want.
My question isn't an order to do research for me. If I were using an app I liked I would be happy to share if someone posted they were looking for it.

I don't know if what I'm looking for exists. My pre-question search felt like a needle in a haystack -- alternatives to htop, great.

This would be GUI. I'm looking at X-windows and want a dynamic CPU monitor on the desktop.

XFCE, JWM, OpenBox

Any implementation. I was thinking desktop like Conky, but I'd settle for the panel or a widget.

It has to be continuous for the function, but not so frequent to become glitchy.

Example: I run a browser. Browsers are pretty big and resource hogging, so I'd spend some time in the red before sufficient loading when I could natigate or issue the next command when the CPU drops below a given threshold.

If this doesn't exist it's an opportunity.
 
Old 05-20-2021, 01:29 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
A few:
https://billw2.github.io/gkrellm/gkrellm.html
https://cubocore.org/
https://www.deepin.org/en/original/d...ystem-monitor/
https://wiki.gnome.org/Apps/SystemMonitor
http://htop.sourceforge.net/
https://github.com/aristocratos/bpytop
https://github.com/cyring/CoreFreq
https://github.com/nicolargo/glances/
https://github.com/orhun/kmon
https://github.com/mate-desktop/mate-system-monitor
https://apps.kde.org/ksysguard/
https://wiki.lxde.org/en/LXTask
https://github.com/brndnmtthws/conky
https://collectd.org/
http://dag.wiee.rs/home-made/dstat/
http://sebastien.godard.pagesperso-orange.fr/
https://goodies.xfce.org/projects/ap...e4-taskmanager
http://pagesperso-orange.fr/sebastien.godard/ (iostat,isag,mpstat,pidstat,sadf,sar)

Quote:
Green < 21% system is relatively dormant
21% < Yellow < 79% moderate running zone
Red > 79% (wait for any new commands)
You can write a script with one of the above.

Code:
a=(10 50 80)
for i in "${a[@]}"; do
    if [ "$i" -lt 21 ]; then
        c=$(tput setaf 2)    
    elif [ "$i" -gt 21 ] && [ "$i" -lt 79 ]; then
        c=$(tput setaf 3) 
    else
        c=$(tput setaf 1)
    fi
    echo ""$c"Cpu is "$i"%"
done
tput sgr0
 
1 members found this post helpful.
Old 05-20-2021, 02:51 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by JASlinux View Post
My question isn't an order to do research for me. If I were using an app I liked I would be happy to share if someone posted they were looking for it.
Then why don't you tell us what you've looked at already?
Quote:
I don't know if what I'm looking for exists. My pre-question search felt like a needle in a haystack -- alternatives to htop, great.
You asked for 'inside hints', so now you have a search term; have you actually DONE anything with it??
Quote:
This would be GUI. I'm looking at X-windows and want a dynamic CPU monitor on the desktop. XFCE, JWM, OpenBox Any implementation. I was thinking desktop like Conky, but I'd settle for the panel or a widget.

It has to be continuous for the function, but not so frequent to become glitchy.

Example: I run a browser. Browsers are pretty big and resource hogging, so I'd spend some time in the red before sufficient loading when I could natigate or issue the next command when the CPU drops below a given threshold.
Then why can't you answer those things, or provide then when asking your question in the first place? We aren't going to guess, and having to ask repeatedly isn't good, as you've been told before. So given what you've posted, have you tried putting "xfce cpu monitor" into Google??? There are MANY plugins and apps you can find with a very simple search...which you still apparently haven't done, since some of the over 224,000 hits are:
https://docs.xfce.org/panel-plugins/...h-plugin/start
https://www.xfce-look.org/browse/cat/425/order/latest
https://github.com/brndnmtthws/conky/wiki/Configs

...along with Conky, which you already know about.

Quote:
If this doesn't exist it's an opportunity.
Yep...an opportunity for YOU to write one.

Last edited by TB0ne; 05-21-2021 at 11:52 AM.
 
Old 05-24-2021, 03:53 PM   #8
JASlinux
Member
 
Registered: Oct 2020
Posts: 380

Original Poster
Rep: Reputation: Disabled
Nice taking a look at it.

Are you linking resource monitors with the feature integral? I'm just a user, not looking to enhance an app with my code.

If anyone cares about Linux vitality and the userbase, not assuming a technical cohort is a healthy stance.

I don't mind if my posts are ignored if no one knows of anything or is disinterested in the possibility.

I believe a solid implementation would catch on. Green light go!

Quote:
Originally Posted by teckk View Post
A few:
https://billw2.github.io/gkrellm/gkrellm.html
https://cubocore.org/
https://www.deepin.org/en/original/d...ystem-monitor/
https://wiki.gnome.org/Apps/SystemMonitor
http://htop.sourceforge.net/
https://github.com/aristocratos/bpytop
https://github.com/cyring/CoreFreq
https://github.com/nicolargo/glances/
https://github.com/orhun/kmon
https://github.com/mate-desktop/mate-system-monitor
https://apps.kde.org/ksysguard/
https://wiki.lxde.org/en/LXTask
https://github.com/brndnmtthws/conky
https://collectd.org/
http://dag.wiee.rs/home-made/dstat/
http://sebastien.godard.pagesperso-orange.fr/
https://goodies.xfce.org/projects/ap...e4-taskmanager
http://pagesperso-orange.fr/sebastien.godard/ (iostat,isag,mpstat,pidstat,sadf,sar)


You can write a script with one of the above.

Code:
a=(10 50 80)
for i in "${a[@]}"; do
    if [ "$i" -lt 21 ]; then
        c=$(tput setaf 2)    
    elif [ "$i" -gt 21 ] && [ "$i" -lt 79 ]; then
        c=$(tput setaf 3) 
    else
        c=$(tput setaf 1)
    fi
    echo ""$c"Cpu is "$i"%"
done
tput sgr0
 
Old 05-24-2021, 04:32 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by JASlinux View Post
Nice taking a look at it.
Are you linking resource monitors with the feature integral? I'm just a user, not looking to enhance an app with my code. If anyone cares about Linux vitality and the userbase, not assuming a technical cohort is a healthy stance.
So what you're actually wanting is someone to write something for you, that fits your specific needs, without you having to modify/change/do anything, is that right?
Quote:
I don't mind if my posts are ignored if no one knows of anything or is disinterested in the possibility. I believe a solid implementation would catch on.
Again: there are a LOT of already-existing CPU monitoring apps. You were handed the links to several...either pick one, search for more, or write your own. Not sure what else you're looking for.
 
  


Reply

Tags
applet, cpu usage, desktop



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
Process Cpu Usage Monitoring sanjay_smg Linux - Software 1 12-04-2006 05:53 AM
Monitoring traffic tool/web based(non-cgi?)/non-SNMP/low CPU usage/non-real time pe2338 Linux - Networking 3 05-04-2006 01:00 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration