LinuxQuestions.org
Review your favorite Linux distribution.
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 10-14-2005, 05:59 PM   #1
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 245

Rep: Reputation: 30
Superkaramba not working properly


I have superkaramba installed from rpm via yast2 and am using the SystemCheck theme which comes as part of the installation.

My problem is that the network section doesn't work properly. From what I can tell the %in and %out commands (or what ever they are, anyone want to explain it?) aren't reporting the in and out rates from my network card, which is an internal wireless card just incase that make a difference.

Code:
###############################################################################
# sensor network download
# range is up to 100 kb. change 'max' value if needed.
###############################################################################
text  x=85 y=68 sensor=network color=255,255,255 format="%in Kb"  fontsize=12 font="verdana" decimals=1 shadow=1 align="right"
text x=135 y=68 sensor=program program="/sbin/ifconfig wlan0 | grep 'RX byte' | awk '{print $3 $4}'" color=255,255,255 align="left" fontsize=12 font="verdana" shadow=1 interval=1000

###############################################################################
# sensor network upload
# range is up to 16 kb. change 'max' value if needed.
###############################################################################
text  x=85 y=113 sensor=network color=255,255,255 format="%out Kb" fontsize=12 font="verdana" decimals=1 shadow=1 align="right"
text x=135 y=113 sensor=program program="/sbin/ifconfig wlan0 | grep 'RX byte' | awk '{print $7 $8}'" color=255,255,255 align="left" fontsize=12 font="verdana" shadow=1 interval=1000
I've striped out the graph crap, the /sbin/ifconfig wlan0 | grep 'RX byte' part works fine so I can see the total amount I've downloaded but I'd like to be able to view the rate which is where the %in and %out come in. Is there something special I need to install? Is there another way to get the info that I can use instead?

Thanks for any help in advance.
 
Old 10-18-2005, 03:10 PM   #2
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
Anyone got any thoughts on this? What would the %in and %out in a superkaramba theme not to work?
 
Old 10-24-2005, 03:35 AM   #3
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
I have figured out that the %in and %out monitor eth0, not wlan0. So the question is, is there a way to change that? Or is there something else I should use instead to monitor wlan0?
 
Old 11-04-2005, 09:42 AM   #4
p0z3r
Member
 
Registered: Apr 2004
Posts: 88

Rep: Reputation: 15
TEXT X=40 Y=5 SENSOR=NETWORK w=60 h=10 align=right COLOR=255,255,255 FORMAT="%in Kbs" FONTSIZE=7 FONT="Arial" DECIMALS=1 DEVICE="eth0"

Append the DEVICE= part to the line matching the output of your ifconfig interface and you'll be fine.
 
Old 11-06-2005, 05:41 AM   #5
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
Thanks very much. That worked a treat.

Just out of curiousity is there anywhere with a list of possible commands/attributes you can use in a superkaramba theme?
 
Old 11-07-2005, 10:45 PM   #6
p0z3r
Member
 
Registered: Apr 2004
Posts: 88

Rep: Reputation: 15
The old site still applies mostly:
http://www.efd.lth.se/~d98hk/karamba/
There are some new options like sensor temperatures in F instead of the default of C.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
superkaramba theme not working because of python-devel slfsh Linux - Software 1 11-05-2004 02:46 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM
Superkaramba on FC2 not working Cypionate Fedora 0 07-24-2004 05:32 PM
SUID not working properly everythingand2 Linux - General 1 02-27-2004 12:42 PM
g.drawString not working properly Jose Muņiz Programming 3 10-18-2003 12:29 PM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration