Kaltet
02-03-2005, 11:48
Ho scaricato da kde-look.org, un tema per superkaramba, non riesco però a visualizzare il grafico dei dati trasmessi e ricevuti in internet. Le righe nel file che si occupano di questo sono:
###############################################################################
# Network
################################################################################
<group> x=10 y=275
text x=70 y=2 value="IP:" color=185,36,36 fontsize=10 font="nimbus sans l"
text x=85 y=2 sensor=program program="/sbin/ip addr show ppp0 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2-" color=0,0,0 fontsize=10 font="nimbus sans l"
################################################################################
# Sensor network upload
# range is up to 100 kb. change 'max' value if needed.
image x=10 y=20 path="img/netgrid-up.png"
graph x=10 y=19 w=200 h=28 color=185,36,36 sensor=network format="%in" interval=1000 max=1000
text x=40 y=48 sensor=network color=0,0,0 format="%in Kb" fontsize=10 font="nimbus sans l" decimals=1
text x=100 y=48 value="(incoming)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMALS=1
################################################################################
# Sensor network upload
# range is up to 16 kb. change 'max' value if needed.
image x=10 y=65 path="img/netgrid-down.png"
graph x=10 y=64 w=200 h=28 color=185,36,36 sensor=network format="%out" interval=1000 max=1000
text x=40 y=93 sensor=NETWORK color=0,0,0 format="%out kb" fontsize=10 font="nimbus sans l" DECIMALS=1
text x=100 y=93 value="(outgoing)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMALS=1
text x=20 y=110 value="Total: IN" color=0,0,0 fontsize=10 font="nimbus sans l"
text x=110 y=110 sensor=program program="/sbin/ifconfig ppp0 | grep 'RX byte' | awk '{print $3 $4}'" color=0,0,0 align=right fontsize=10 font="nimbus sans l"
text x=120 y=110 value="OUT" color=0,0,0 fontsize=10 font="nimbus sans l"
text x=190 y=110 sensor=program program="/sbin/ifconfig ppp0 | grep 'RX byte' | awk '{print $7 $8}'" color=0,0,0 align=right fontsize=10 font="nimbus sans l"
image x=160 y=105 PATH="img/icons/network.png"
text x=15 y=130 value="Network Load" color=0,0,0 fontsize=16 font="neuropol"
</group>
Dove c'è scritto ppp0 l'ho modificato io, perkè in origine era eth0, ma avendo un modem usb naturalmente il mio protocollo è ppp0. Così mi dice i Total IN e i total OUT, ma non mi fa vedere i dati trasmessi e ricevuti "in tempo reale". Ho notato che in Ksysguard invece me li fa vedere...c'è un modo per accedere a quelle informazioni?
###############################################################################
# Network
################################################################################
<group> x=10 y=275
text x=70 y=2 value="IP:" color=185,36,36 fontsize=10 font="nimbus sans l"
text x=85 y=2 sensor=program program="/sbin/ip addr show ppp0 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2-" color=0,0,0 fontsize=10 font="nimbus sans l"
################################################################################
# Sensor network upload
# range is up to 100 kb. change 'max' value if needed.
image x=10 y=20 path="img/netgrid-up.png"
graph x=10 y=19 w=200 h=28 color=185,36,36 sensor=network format="%in" interval=1000 max=1000
text x=40 y=48 sensor=network color=0,0,0 format="%in Kb" fontsize=10 font="nimbus sans l" decimals=1
text x=100 y=48 value="(incoming)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMALS=1
################################################################################
# Sensor network upload
# range is up to 16 kb. change 'max' value if needed.
image x=10 y=65 path="img/netgrid-down.png"
graph x=10 y=64 w=200 h=28 color=185,36,36 sensor=network format="%out" interval=1000 max=1000
text x=40 y=93 sensor=NETWORK color=0,0,0 format="%out kb" fontsize=10 font="nimbus sans l" DECIMALS=1
text x=100 y=93 value="(outgoing)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMALS=1
text x=20 y=110 value="Total: IN" color=0,0,0 fontsize=10 font="nimbus sans l"
text x=110 y=110 sensor=program program="/sbin/ifconfig ppp0 | grep 'RX byte' | awk '{print $3 $4}'" color=0,0,0 align=right fontsize=10 font="nimbus sans l"
text x=120 y=110 value="OUT" color=0,0,0 fontsize=10 font="nimbus sans l"
text x=190 y=110 sensor=program program="/sbin/ifconfig ppp0 | grep 'RX byte' | awk '{print $7 $8}'" color=0,0,0 align=right fontsize=10 font="nimbus sans l"
image x=160 y=105 PATH="img/icons/network.png"
text x=15 y=130 value="Network Load" color=0,0,0 fontsize=16 font="neuropol"
</group>
Dove c'è scritto ppp0 l'ho modificato io, perkè in origine era eth0, ma avendo un modem usb naturalmente il mio protocollo è ppp0. Così mi dice i Total IN e i total OUT, ma non mi fa vedere i dati trasmessi e ricevuti "in tempo reale". Ho notato che in Ksysguard invece me li fa vedere...c'è un modo per accedere a quelle informazioni?