LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-01-2005, 02:30 PM   #1
bungle_42
Member
 
Registered: Jun 2004
Posts: 35

Rep: Reputation: 15
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?
 
Old 07-02-2005, 10:13 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
try "knemo" , its like the network icon in windows, gives u info on total download, upload, speed and more
 
Old 07-02-2005, 06:20 PM   #3
bungle_42
Member
 
Registered: Jun 2004
Posts: 35

Original Poster
Rep: Reputation: 15
thanks for that but I was looking for something to integrate into karamba!
 
  


Reply



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
karamba *not super karamba* whishkah Linux - Software 1 09-28-2004 09:59 AM
Please help...karamba.... Veteq Linux - Newbie 3 04-01-2004 09:56 PM
****Karamba**** iLLuSionZ Linux - General 3 11-22-2003 11:03 AM
karamba iLLuSionZ Linux - Newbie 4 11-20-2003 10:36 PM
Karamba Help Evohack Linux - Software 2 08-07-2003 10:19 PM

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

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

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