Karamba help
Ok I have got Karamba up and running on Suse 9.2proff.
I just want to configure it so that I can keep trakc of how much data i d/l from the net as
a total.
I have found cobbled together this code:
###############################################
# Biohazard Monitor! v 0.5.1
# License: GPL
##############################################
#
# Icons made by David Vignoni (Nuvola) icon-king.com
#
##############################################
# NOTE!: You can change (in the bar option) the value "max" for your connection
##############################################
karamba x=100 y=200 w=300 h=200 interval=1000 locked=false
defaultfont color=240,240,240 fontsize=10 font="Bitstream Vera Sans" shadow=2 bgcolor=3,3,3
##############################################
# BackGroud
image x=0 y=0 path="backs/backg.png"
# ICONS/IMAGES
image x=255 y=17 path="icons/net.png"
# Network Traffic Monitor
text x=30 y=18 value="Network Info:" fontsize=15 font="kabel"
text x=30 y=50 value="eth0" fontsize=12 font="kabel"
#
text x=30 y=75 value="Down:"
text x=120 y=105 sensor=network device="ppp0" format="%in kB/s" interval=1000 decimals=2
text x=190 y=75 sensor=program program="/sbin/ifconfig eth0 | grep 'RX byte' | awk '{print $3 $4}'" interval=1000
bar x=54 y=95 w=190 h=5 path="icons/bar.png" sensor=network device="ppp0" format="%in" max=6 interval=1000
image x=52 y=93 path="icons/barcpu.png"
#
text x=30 y=125 value="Up:"
text x=120 y=155 sensor=network device="ppp0" format="%out kB/s" interval=1000 decimals=2
text x=190 y=125 sensor=program program="/sbin/ifconfig ppp0 | grep 'TX byte' | awk '{print $7 $8}'" interval=1000
bar x=54 y=145 w=190 h=5 path="icons/bar.png" sensor=network device="ppp0" format="%out" max=6 interval=1000
image x=52 y=143 path="icons/barcpu.png"
#
text x=165 y=50 value="IP :"
text x=185 y=50 sensor=program program="/sbin/ip addr show ppp0 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2-"
#
text x=15 y=65 value="Total IN --" color=25,30,60 fontsize=11 font="Cure" decimals=1
text x=90 y=65 sensor=program program="/sbin/ifconfig ppp0 | grep 'RX byte' | awk '{print $3 $4}'" color=25,30,60 fontsize=11 font="Cure" decimals=1
#
text x=15 y=80 value="Total OUT --" color=25,30,60 fontsize=11 font="Cure" decimals=1
text x=90 y=80 sensor=program program="/sbin/ifconfig ppp0 | grep 'RX byte' | awk '{print $7 $8}
I get some errors about not being able to find some bits. Also it's a USB BT Voyager modem. If that helps.
Any ideas?
|