conky – system monitoring

Sveiki,

Pastaruoju metu radau naują programėlę. Gal matėte screenshots (pvz tokius). Taigi tokį vaizdą galite pasiekti ir jūs. Tokia programėlė yra Conky. Jos pagalba galite sužinoti kokia programa užima daugiausia atminties, RAM ir pan.

Man yra tekę naudoti top, ntop, munin, bandwidthd. Žinoma, jie yra visai kitokio pobūdžio. ir tik conky leidžia informaciją patalpinti ant darbalaukio.

Taigi, kai jį įsidiegti:


# aptitude install conky


Konfigūracinis failas:


$ vi ~/.conkyrc


Failo turinys:


alignment top_right
background no
border_width 1
border_margin 4
cpu_avg_samples 2
default_color white
default_outline_color white
#default_shade_color white
default_shade_color yellow
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no
font 6x10
gap_x 5
gap_y 20
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
#own_window yes
own_window no
own_window_class Conky

own_window_type normal
#own_window_type override
own_window_transparent yes
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer no
show_graph_scale no
show_graph_range no

TEXT
${scroll 26 $nodename - $sysname $kernel on $machine | }
$hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${color} $cpu% ${cpubar}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processes:$color $processes ${color grey}Running:$color Ėrunning_processes
$color$stippled_hr
${color lightgrey}eth0:Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 51}eth0:Up:${color #22ccff} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
${color lightgrey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}Name PID CPU% MEM%
${color red}${cpugraph 0000ff 00ff00}
${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}Mem usage
${color green}${memgraph 0000ff 00ff00}
${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}
$stippled_hr

${color #ddaa00}Port(s)${alignr}#Connections
$color Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 65535 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #ddaa00}Inbound Connection ${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}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
${tcp_portmon 1 32767 rhost 7} ${alignr} ${tcp_portmon 1 32767 lservice 7}
${tcp_portmon 1 32767 rhost 8} ${alignr} ${tcp_portmon 1 32767 lservice 8}
${tcp_portmon 1 32767 rhost 9} ${alignr} ${tcp_portmon 1 32767 lservice 9}
${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color
${tcp_portmon 32768 65535 rhost 0} ${alignr} ${tcp_portmon 32768 65535 rservice 0}
${tcp_portmon 32768 65535 rhost 1} ${alignr} ${tcp_portmon 32768 65535 rservice 1}
${tcp_portmon 32768 65535 rhost 2} ${alignr} ${tcp_portmon 32768 65535 rservice 2}
${tcp_portmon 32768 65535 rhost 3} ${alignr} ${tcp_portmon 32768 65535 rservice 3}
${tcp_portmon 32768 65535 rhost 4} ${alignr} ${tcp_portmon 32768 65535 rservice 4}
${tcp_portmon 32768 65535 rhost 5} ${alignr} ${tcp_portmon 32768 65535 rservice 5}
${tcp_portmon 32768 65535 rhost 6} ${alignr} ${tcp_portmon 32768 65535 rservice 6}
${tcp_portmon 32768 65535 rhost 7} ${alignr} ${tcp_portmon 32768 65535 rservice 7}
${tcp_portmon 32768 65535 rhost 8} ${alignr} ${tcp_portmon 32768 65535 rservice 8}
${tcp_portmon 32768 65535 rhost 9} ${alignr} ${tcp_portmon 32768 65535 rservice 9}
${tcp_portmon 32768 65535 rhost 10} ${alignr} ${tcp_portmon 32768 65535 rservice 10}
${tcp_portmon 32768 65535 rhost 11} ${alignr} ${tcp_portmon 32768 65535 rservice 11}
${tcp_portmon 32768 65535 rhost 12} ${alignr} ${tcp_portmon 32768 65535 rservice 12}
${tcp_portmon 32768 65535 rhost 13} ${alignr} ${tcp_portmon 32768 65535 rservice 13}
${tcp_portmon 32768 65535 rhost 14} ${alignr} ${tcp_portmon 32768 65535 rservice 14}
${tcp_portmon 32768 65535 rhost 15} ${alignr} ${tcp_portmon 32768 65535 rservice 15}
${tcp_portmon 32768 65535 rhost 16} ${alignr} ${tcp_portmon 32768 65535 rservice 16}
${tcp_portmon 32768 65535 rhost 17} ${alignr} ${tcp_portmon 32768 65535 rservice 17}
${tcp_portmon 32768 65535 rhost 18} ${alignr} ${tcp_portmon 32768 65535 rservice 18}
${tcp_portmon 32768 65535 rhost 19} ${alignr} ${tcp_portmon 32768 65535 rservice 19}

Ir paleidžiame programą mūsų naudotoju.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.