LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Superkaramba not working properly (https://www.linuxquestions.org/questions/linux-software-2/superkaramba-not-working-properly-373144/)

mickyg 10-14-2005 05:59 PM

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.

mickyg 10-18-2005 03:10 PM

Anyone got any thoughts on this? What would the %in and %out in a superkaramba theme not to work?

mickyg 10-24-2005 03:35 AM

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?

p0z3r 11-04-2005 09:42 AM

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.

mickyg 11-06-2005 05:41 AM

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?

p0z3r 11-07-2005 10:45 PM

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.


All times are GMT -5. The time now is 07:15 PM.