Konfigurationscript des System-Monitor conky

Aus Bluelupo's Wiki
Wechseln zu: Navigation, Suche

Screenshot conky System-Monitor

Conky.png


Konfigurationsscript conky

# conky config file
alignment top_left
background no
default_color yellow
default_outline_color black
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
stippled_borders 0
#border_margin
border_width 1
use_xft yes
xftfont DejaVu Sans Mono:size=8
xftalpha 1
gap_x 1
gap_y 50
minimum_size 260 900
no_buffers yes
out_to_console no
out_to_stderr no
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
update_interval 8.0
uppercase no
use_spacer right 
show_graph_scale no
show_graph_range no
total_run_times 0
cpu_avg_samples 2
net_avg_samples 2
top_cpu_separate false
override_utf8_locale yes

TEXT
BlueLupo's SystemMonitor
${offset 10}${color green}Date:       ${color }${time %A} ${time %e %B %G}
${offset 10}${color green}Time:       ${color }${time %Z} ${time %H:%M:%S}
${offset 10}${color green}IP-Address: ${color }${execi 3600 wget http://checkip.dyndns.org/ -q -O - |grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'} / ${addr eth0}
${offset 10}${color green}Cur.Kernel: ${color}$kernel
${offset 10}${color green}Av. Kernel: ${color}${execi 3600 wget -q -O - http://debian.tu-bs.de/project/aptosid/debian/pool/main/l/linux-aptosid-2.6/ | egrep linux-image-2.6[.].*amd64.deb | awk -F"-" '{print $3"-"$4"-"$5"-"$6}'|cut -d"_" -f1}
${offset 10}${color green}Upd./Hold Packages:  ${color }${execi 900 apt-show-versions|grep -w upgradeable|wc -l} / ${execi 900 dpkg --get-selections|grep hold|wc -l}

${offset 10}${color green}CPU0: ${color}${cpu cpu1}% ${execi 300 sensors|egrep 'Core 0:'|awk '{print $3}'} 
${offset 10}${cpugraph ${cpu1} 40,240 000000 ffffff}
${offset 10}${color green}CPU1: ${color}${cpu cpu2}% ${execi 300 sensors|egrep 'Core 1:'|awk '{print $3}'}
${offset 10}${cpugraph ${cpu2} 40,240 000000 ffffff}
${offset 10}${color green}DiskA I/O: ${color}${diskio sda}  ${color green}${alignr}DiskB-I/O: ${color}${diskio sdb}
${offset 10}${diskiograph 40,240 009bf9 ffffff}
${offset 10}${color green}Load: ${color }$loadavg
${offset 10}${loadgraph 40,240 ffff00 00ff00}

${offset 10}${color blue}Highest on CPU
${offset 20}${color red} ${top name 1}        ${top cpu 1}
${offset 20}${color yellow} ${top name 2}        ${top cpu 2}
${offset 20}${color yellow} ${top name 3}        ${top cpu 3}
${offset 20}${color green} ${top name 4}        ${top cpu 4}
${offset 20}${color green} ${top name 5}        ${top cpu 5}
${offset 10}${color blue}Highest on Memory
${offset 20}${color red} ${top_mem name 1}        ${top_mem mem 1}
${offset 20}${color yellow} ${top_mem name 2}        ${top_mem mem 2}
${offset 20}${color yellow} ${top_mem name 3}        ${top_mem mem 3}
${offset 20}${color green} ${top_mem name 4}        ${top_mem mem 4}
${offset 20}${color green} ${top_mem name 5}        ${top_mem mem 5}

${offset 10}${color blue} ${offset 10}MEM:  ${color blue}$memperc% $mem/$memmax
${offset 10}${membar 6,240}
${offset 10}${color green} ${offset 10}HOME: ${color green}${fs_free /home}/${fs_size /home}
${offset 10}${fs_bar 6,240 /home}
${offset 10}${color grey} ${offset 10}VAR:  ${color grey}${fs_free /var}/${fs_size /var}
${offset 10}${color }${fs_bar 6,240 /var}
${offset 10}${color grey} ${offset 10}PHOTO: ${color grey}${fs_free /mnt/photo}/${fs_size /mnt/photo}
${offset 10}${color }${fs_bar 6,240 /mnt/photo}
${offset 10}${color grey} ${offset 10}MUSIC: ${color grey}${fs_free /mnt/music}/${fs_size /mnt/music}
${offset 10}${color }${fs_bar 6,240 /mnt/music}

$font${color green}Outbound Connect ${alignr} Remote Service/Port$color
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${color green}Inbound Connect ${alignr} Local Service/Port$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${offset 10}${color}NETWORK DownLoad eth0: ${color white}${downspeed eth0}${color}
${offset 10}${downspeedgraph eth0 40,240 FF7F24 436EEE scale -l 0.5}
${offset 10}${color}NETWORK UpLoad eth0: ${color white}${upspeed eth0}${color}
${offset 10}${upspeedgraph eth0 40,240 000000 ffffff scale -l 0.1}