Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 24/04/2009, à 16:05

Octaria

[CONKY]baisse de rafraichissement avec tcp_portmon

Bonjour,

Mon soucis avec conky est le suivant:

voici tout d'abord mon .conkyrc en question.

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8

own_window_transparent yes
own_window_colour hotpink
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Text alpha when using Xft
xftalpha 0.8

#on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 13
gap_y 13
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no
      
text_buffer_size 2048
       
TEXT




$nodename -- Julien@Linux -- $kernel
$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg

${color lightgrey}Core 1: ${cpu 1}% ${cpubar cpu1}
${color lightgrey}Core 2: ${cpu 2}% ${cpubar cpu2}
${color black}${cpugraph cpu2 32,150 2CB68 5C9CD9} $alignr${color black}${cpugraph cpu1 32,150 2C4B68 5C9CD9}
${color lightgrey}RAM:$color $mem/$memmax - $memperc% $membar
${color lightgrey}Swap:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color lightgrey}Hdd/Linux:
 / $color${fs_used /}/${fs_size /} ${fs_bar /}

${color lightgrey}Temperatures:

${color lightgrey}CPU : $alignr${acpitemp}C
${color lightgrey}Disque Dur : $alignr${hddtemp /dev/sda}
$color$stippled_hr
${color lightgrey}Reseau:

 Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 2CB68 5C9CD9} $alignr${color black}${upspeedgraph eth0 32,150 2CB68 5C9CD9}

$color$stippled_hr
Processus:

Name              PID     CPU%   MEM%

${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}

${color}Mem usage

${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

$color$stippled_hr
PORTS:
${color2}Ouverts : $color${tcp_portmon 1 65535 count}$alignc${color2}Entrants : $color${tcp_portmon 1 32767 count} $alignr${color2}Sortants : $color${tcp_portmon 32768 61000 count}
${color blue} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}
${tcp_portmon 1 65535 rhost 6} $alignr${tcp_portmon 1 65535 lservice 6}
${tcp_portmon 1 65535 rhost 7} $alignr${tcp_portmon 1 65535 lservice 7}
${tcp_portmon 1 65535 rhost 8} $alignr${tcp_portmon 1 65535 lservice 8}
${tcp_portmon 1 65535 rhost 9} $alignr${tcp_portmon 1 65535 lservice 9}

La partie qui me pause soucis sont ces lignes là :

PORTS:
${color2}Ouverts : $color${tcp_portmon 1 65535 count}$alignc${color2}Entrants : $color${tcp_portmon 1 32767 count} $alignr${color2}Sortants : $color${tcp_portmon 32768 61000 count}
${color lightgrey} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}
${tcp_portmon 1 65535 rhost 6} $alignr${tcp_portmon 1 65535 lservice 6}
${tcp_portmon 1 65535 rhost 7} $alignr${tcp_portmon 1 65535 lservice 7}
${tcp_portmon 1 65535 rhost 8} $alignr${tcp_portmon 1 65535 lservice 8}
${tcp_portmon 1 65535 rhost 9} $alignr${tcp_portmon 1 65535 lservice 9}

si je ne met que :

${color2}Ouverts : $color${tcp_portmon 1 65535 count}$alignc${color2}Entrants : $color${tcp_portmon 1 32767 count} $alignr${color2}Sortants : $color${tcp_portmon 32768 61000 count}

ça fonctionne  mais si j'inclus ça :

${color lightgrey} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}
${tcp_portmon 1 65535 rhost 6} $alignr${tcp_portmon 1 65535 lservice 6}
${tcp_portmon 1 65535 rhost 7} $alignr${tcp_portmon 1 65535 lservice 7}
${tcp_portmon 1 65535 rhost 8} $alignr${tcp_portmon 1 65535 lservice 8}
${tcp_portmon 1 65535 rhost 9} $alignr${tcp_portmon 1 65535 lservice 9}

mon conky se rafrichit que toutes les 6 à 10 secondes au lieu de 1 hmm

Si une petite idée vous passe par là tête merci ^^.

Dernière modification par Octaria (Le 24/04/2009, à 16:06)

Hors ligne

#2 Le 26/04/2009, à 11:41

Octaria

Re : [CONKY]baisse de rafraichissement avec tcp_portmon

J'ai tenté de faire tourner ça dans un conky tout seul et rien n'y fait c'est toujours aussi long à se rafraichir...

j'avoue ne pas trouver de solution et apparement personne d'autre n'a eu ce soucis.

j'aimerai vraiment réglé ce soucis merci smile

Hors ligne