시스템 모니터링 – conky

사용자 삽입 이미지
정리해 두지 않으니, 매번 꾸며야 하는 불편함이..이기회에 정리함..
$ vi ~/.conkyrc
background yes
use_xft yes
own_window_hints below
xftfont MiscFixed:size=9
xftalpha 2
update_interval 2
total_run_times 0
own_window yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
own_window_transparent yes
own_window_colour # ff0000
double_buffer yes
minimum_size 280 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 5
border_width 10
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 5
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
min_port_monitors 16
min_port_monitor_connections 256
TEXT
${voffset -10}${font openlogos:size=35}${color red}o${voffset -9}${font Arial:bold:size=21}${color Tan1} RedHat ES5
${font Arial:bold:size=16}${color Ivory}HostName : $nodename
${font Poky:size=15}d${font Arial:bold:size=14}${voffset -1}${color Black}[${color slate gray}${time %F} ${time %H:%M:%S}${color Black}]
${voffset -70}
${color white}
${font}
${font Arial:bold:size=10}${color Tan1}SYSTEM ${color white} ${hr 2}
$font${color aaaaaa}$sysname $kernel $alignr $machine
Uptime $alignr${uptime}
File System $alignr${fs_type}
${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color white}${hr 2}
$font${color slate grey}CPU  ${font MiscFixed:size=9}${color aaaaaa}${cpu cpu}%
${cpugraph 20,190 blue red}
${color slate grey}MEM: ${font MiscFixed:size=9}${color aaaaaa}$memperc% $mem/$memmax${font}
${membar 20,190}
${color slate grey}SWAP: ${font MiscFixed:size=9}${color aaaaaa}$swapperc% $swap/$swapmax${font}
${swapbar 20,190}
${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color white}${hr 2}${font}
${color slate grey}${top_mem name 2}${font MiscFixed:size=9}${color aaaaaa}${alignr}${top mem 2} %${font}
${color slate grey}$font${top_mem name 3}${font MiscFixed:size=9}${color aaaaaa}${alignr}${top mem 3} %${font}
${color slate grey}$font${top_mem name 4}${font MiscFixed:size=9}${color aaaaaa}${alignr}${top mem 4} %${font}
${color slate grey}$font${top_mem name 5}${font MiscFixed:size=9}${color aaaaaa}${alignr}${top mem 5} %${font}
${font MiscFixed:size=9}${color aaaaaa}Name           PID     CPU    MEM
${font MiscFixed:size=9}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
Mem usage$font
${font MiscFixed:size=9}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}$font
${font Arial:bold:size=10}${color Tan2}NETUSR ${color white}${hr 2}
${color slate grey}IP on eth0 ${font MiscFixed:size=9}${color aaaaaa}$alignr ${addr eth0}${font}
${color slate grey}Down ${font MiscFixed:size=9}${color aaaaaa}$alignr${downspeed eth0}kb/s${font} ${downspeedgraph wlan0 20,120 F660AB F52887}
${color slate grey}Up ${font MiscFixed:size=9}${color aaaaaa}$alignr${upspeed eth0}kb/s${font} ${upspeedgraph wlan0 20,120 F660AB F52887}
${color slate grey}Downloaded ${font MiscFixed:size=9}${color aaaaaa}$alignr ${totaldown eth0}${font}
${color slate grey}Uploaded ${font MiscFixed:size=9}${color aaaaaa}$alignr ${totalup eth0}${font}
${font Arial:bold:size=10}${color Tan1}HDD ${color white}${hr 2}
$font${color slate grey}ROOT ${font MiscFixed:size=9}${color aaaaaa}$alignc${fs_used /}/${fs_size /} $alignr${fs_free_perc /}%
${fs_bar /}${font}
$font${color slate grey}HOME ${font MiscFixed:size=9}${color aaaaaa}$alignc${fs_used /home}/${fs_size /home} $alignr${fs_free_perc /home}%
${fs_bar /home}${font}
$font${color slate grey}USR ${font MiscFixed:size=9}${color aaaaaa}$alignc${fs_used /usr}/${fs_size /usr} $alignr${fs_free_perc /usr}%
${fs_bar /usr}${font}
${voffset 10}${font Arial:bold:size=10}${color Tan2}CALENDAR ${color white}${hr 2}
${voffset -2}${color slate gray}${font openlogos:size=80}o${font}${color}${voffset -70}${font MiscFixed:size=9}${color aaaaaa}${execpi 10800 DJS=`date +%-d`; LANG=en_US cal | sed ‘s/^/${goto 90} /’ | sed ‘1d’ | sed s/” $DJS “/” “‘${font MiscFixed:Bold:size=9}’$DJS’${font}'” “/}${color}${voffset -18}
${color white}${hr 2}
서진우

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

페이스북/트위트/구글 계정으로 댓글 가능합니다.