LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   resource/sensor monitor (https://www.linuxquestions.org/questions/linux-general-1/resource-sensor-monitor-307047/)

evil_empire 03-28-2005 12:11 PM

resource/sensor monitor
 
Hi guys,
I'm not sure where to start this thread!
I may sound dumb, but what to do I can't exactly remember which app it was.

I'm looking for an application that shows lm sensors values and cpu, ram, uptime etc resources in a small colourful window.
Not something heavy like KDE System Guard. Something light and small so that I can keep it running all the time without occupying the whole workspace.
I took a quick look through all the packages with FC3 couldn't find or guess one.
I see apps like this every now and then on screenshots people post, have no clue.

Plzzz suggest me a good one.

__J 03-28-2005 12:35 PM

gkrellm

dping 03-28-2005 12:36 PM

Gkrellm is one. Superkaramba also has several very nice system monitor themes.

http://www.superkaramba.com/...
[ kde-look.org superkaramba themes ]
http://members.dslextreme.com/users/...m/gkrellm.html

evil_empire 03-28-2005 01:04 PM

Thanks guys!
gkrellm was what I couldn't remember.

Mega Man X 03-28-2005 01:08 PM

I know this had been answered, but check out the Finnish torsmo:

http://torsmo.sourceforge.net/

I found it way better then gkrellm and way less resource intensive. The good thing about torsmo is that it runs on the root window (more or less like a background). It's very customizable as well and very sexy :).

Regards!

evil_empire 03-28-2005 01:21 PM

Thanks Megaman,
BTW, I want all of the aboves to run on KDE. I hope they do.

Mega Man X 03-28-2005 01:41 PM

You are most welcome ;). I got torsmo to run on KDE and SuSE 9.1 a while ago. Some users have been reporting problems with torsmo and Gnome because of nautilus, which covers the root window in order to display desktop icons. I think it's worthy a shot, and that little thing runs great :)

If you like the idea of monitoring things on your root window, check out also root-tail:

http://www.goof.com/pcg/marc/root-tail.html

works similar to torsmo, but instead of the system, it monitors your log files (usually at /var/log) so you get full control/monitoring of everything happening in your system without opening applications or switching to them (with alt+tab, for example).

Good luck! ;)

evil_empire 03-29-2005 02:30 PM

hey MegaMan,
couldn't get root-tail running, compiled and installed fine but vouldn't get the log window.
I think I passed all the window log file parameters, gave no error but windows doesn't pop-up. Pretends its working though!
Any clue? And a few examples as well :D
Maybe I should RTFM.:study:

BTW, I'm on FC3, KDE.

Mega Man X 03-31-2005 02:44 AM

Hi again evil_empire! :)

I'm not sure if I understood your question. Sorry. But if you mean that root-tail is running fine (on the root window) but not displaying your logs correctly (or not at all) that might be because only root can see the logs on your system. You could modify the permissions with chmod so users can read your logs, but don't let them write into it ;)

Regards!

evil_empire 03-31-2005 11:31 AM

Hi mega, I sorted out root-tail. Actually no output was produced, I had to give all the fonts and window geometry parameters correctly and then it worked.
But torsmo is giving a tiny problem, it displays everything well, but wouldn't display lm sensor values. Looks like its looking at the wrong place in the /proc. Theres no default configuration file that I can modify to correct it. And I have no idea how to write a config file for it from the scratch. I just know it uses ~/.torsmorc. Plzz shed some light if you have time.
And, BTW theres no problem with i2c & lm sensors, gkrellm & sensors both give the correct values.

Mega Man X 03-31-2005 11:52 AM

Hi again :). Well, you were pretty close ;). When you've downloaded torsmo, you actually got a sample rc file called "torsmorc.sample". You could simple copy to your home directory and rename it to .torsmorc and make the modifications necessary. I'm posting the config file here anyways ;)

Code:

# torsmo configuration

# set to yes if you want tormo to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft no

# Xft font when Xft is enabled
xftfont courier-12

# Text alpha when using Xft
xftalpha 0.8

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 5.0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer no

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable        Arguments                  Description               
#  acpiacadapter                    ACPI ac adapter state.                 
#  acpifan                          ACPI fan state                         
#  acpitemp                          ACPI temperature.                       
#  adt746xcpu                        CPU temperature from therm_adt746x     
#  adt746xfan                        Fan speed from therm_adt746x           
#  battery          (num)          Remaining capasity in ACPI or APM       
#                                    battery. ACPI battery number can be     
#                                    given as argument (default is BAT0).   
#  buffers                          Amount of memory buffered               
#  cached                            Amount of memory cached                 
#  color            (color)        Change drawing color to color           
#  cpu                              CPU usage in percents                   
#  cpubar            (height)        Bar that shows CPU usage, height is     
#                                    bar's height in pixels                 
#  downspeed        net            Download speed in kilobytes             
#  downspeedf        net            Download speed in kilobytes with one   
#                                    decimal                                 
#  exec              shell command  Executes a shell command and displays   
#                                    the output in torsmo. warning: this     
#                                    takes a lot more resources than other   
#                                    variables. I'd recommend coding wanted 
#                                    behaviour in C and posting a patch :-). 
#  execi            interval, shell Same as exec but with specific interval.
#                    command        Interval can't be less than             
#                                    update_interval in configuration.       
#  fs_bar            (height), (fs)  Bar that shows how much space is used on
#                                    a file system. height is the height in 
#                                    pixels. fs is any file on that file     
#                                    system.                                 
#  fs_free          (fs)            Free space on a file system available   
#                                    for users.                             
#  fs_free_perc      (fs)            Free percentage of space on a file     
#                                    system available for users.             
#  fs_size          (fs)            File system size                       
#  fs_used          (fs)            File system used space                 
#  hr                (height)        Horizontal line, height is the height in
#                                    pixels                                 
#  i2c              (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev 
#                                    may be omitted if you have only one I2C 
#                                    device. type is either in (or vol)     
#                                    meaning voltage, fan meaning fan or temp
#                                    meaning temperature. n is number of the 
#                                    sensor. See /sys/bus/i2c/devices/ on   
#                                    your local computer.                   
#  kernel                            Kernel version                         
#  loadavg          (1), (2), (3)  System load average, 1 is for past 1   
#                                    minute, 2 for past 5 minutes and 3 for 
#                                    past 15 minutes.                       
#  machine                          Machine, i686 for example               
#  mails                            Mail count in mail spool. You can use   
#                                    program like fetchmail to get mails from
#                                    some server using your favourite       
#                                    protocol. See also new_mails.           
#  mem                              Amount of memory in use                 
#  membar            (height)        Bar that shows amount of memory in use 
#  memmax                            Total amount of memory                 
#  memperc                          Percentage of memory in use             
#  new_mails                        Unread mail count in mail spool.       
#  nodename                          Hostname                               
#  outlinecolor      (color)        Change outline color                   
#  pre_exec          shell command  Executes a shell command one time before
#                                    torsmo displays anything and puts output
#                                    as text.                               
#  processes                        Total processes (sleeping and running) 
#  running_processes                Running processes (not sleeping),       
#                                    requires Linux 2.6                     
#  shadecolor        (color)        Change shading color                   
#  stippled_hr      (space),        Stippled (dashed) horizontal line       
#                    (height)       
#  swapbar          (height)        Bar that shows amount of swap in use   
#  swap                              Amount of swap in use                   
#  swapmax                          Total amount of swap                   
#  swapperc                          Percentage of swap in use               
#  sysname                          System name, Linux for example         
#  time              (format)        Local time, see man strftime to get more
#                                    information about format               
#  totaldown        net            Total download, overflows at 4 GB on   
#                                    Linux with 32-bit arch and there doesn't
#                                    seem to be a way to know how many times 
#                                    it has already done that before torsmo 
#                                    has started.                           
#  totalup          net            Total upload, this one too, may overflow
#  updates                          Number of updates (for debugging)       
#  upspeed          net            Upload speed in kilobytes               
#  upspeedf          net            Upload speed in kilobytes with one     
#                                    decimal                                 
#  uptime                            Uptime                                 
#  uptime_short                      Uptime in a shorter format             
#
#  seti_prog                        Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                      Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT
$nodename - $sysname $kernel on $machine
$stippled_hr
${color grey}Uptime$color $uptime
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 6}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 6}
${color grey}CPU Usage:$color $cpu% ${cpubar 6}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color grey}Mails: ${color}$mails${color grey} New: ${color}$new_mails${color grey}
$color$stippled_hr
${color grey}Networking:
 Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s
${color grey}File systems:
 / $color${fs_free /}/${fs_size /} ${fs_bar 6 /}
${color grey}Temperatures:
 CPU:$color ${i2c temp 1}°C${color grey} - MB:$color ${i2c temp 2}°C

On torsmo homepage, there's also a little explanation about the config file:

http://torsmo.sourceforge.net/readme.php

I'm not sure how sensors actually work though. The box I run torsmo has no temp control at all :(.

I wish you luck my friend!

evil_empire 03-31-2005 12:35 PM

Thanks a lot Megaman.
Luv ya!

Mega Man X 03-31-2005 12:47 PM

You are welcome ;)


All times are GMT -5. The time now is 06:53 AM.