summaryrefslogtreecommitdiffstats
path: root/archive/netstat.conf.adei
blob: a2010b009b160bb5aab8a420728d807889d3c2a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
update_interval 30
alignment top_left
own_window		yes
own_window_transparent	no
own_window_type		override
own_window_hints	undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour	21449c

minimum_size 800 0
maximum_width 800

double_buffer yes
background no

text_buffer_size 1024

use_xft yes
xftfont Bitstream Vera Sans Mono:size=9
xftalpha 0.8
#override_utf8_locale yes
#font -xos4-terminus-medium-r-normal--12-120-72-72-c-60-koi8-r


gap_x 600
gap_y 0

# 2 - standard width in characters
# 3 - network timeout 
# 5 - interactive apps (xmms)
# 6 - local apps 
# 7 - networking
# 8 - ping + remote scripts
template2 80
template3 2
template5 120
template6 300
template7 600
template8 900

#template0 ${if_match ${execi $template8 /etc/conky/scripts/ping.pl \1:3389} > 0}${color green}${else}${color red}${endif}*${color}
#template0 ${lua_parse check_server_status \1 3389 -}
template0 ${lua_parse check_server_status \1 22 -}
template1 ${lua_parse check_server_status \1 3306 -}

lua_load /etc/conky/support.lua

TEXT
${color yellow}KIT ${hr}${lua set_width $template2}${lua set_timeout $template3}
${color white}ipepdvsrv1 ${goto 160}${lua_parse check_server_status ipepdvsrv1.ipe.kit.edu} 
#{color white}ipepdvcompute1 ${goto 160}${lua_parse check_server_status ipepdvcompute1.ipe.kit.edu} 
${color white}ipepdv  ${goto 160}${lua_parse check_server_status ipepdv.ipe.kit.edu 22 adei}${color white} 
  ${color cyan}Office               ${color white}: ${lua_parse check_adei_source ipepdv.ipe.kit.edu 22 adei rrd rrd office}
#  ${color cyan}Virtual Server       ${color white}: ${lua_parse check_adei_source ipepdv.ipe.kit.edu 22 adei rrd rrd ipepdvsrv1}
#  ${color cyan}Katrin Server        ${color white}: ${lua_parse check_adei_source ipepdv.ipe.kit.edu 22 adei rrd rrd ipekatrinadei}
#  ${color cyan}Compute Server       ${color white}: ${lua_parse check_adei_source ipepdv.ipe.kit.edu 22 adei rrd rrd ipepdvcompute1}
#  ${color cyan}UFO Server           ${color white}: ${lua_parse check_adei_source ipepdv.ipe.kit.edu 22 adei rrd rrd ufosrv1}
#  ${color cyan}Tango                ${color white}: ${lua_parse check_adei_source ipepdv.ipe.kit.edu 22 adei tango tango hdb .*}
${color white}ipekatrinadei ${goto 160}${lua_parse check_server_status katrin.kit.edu 22 adei}${color white}
  ${color cyan}FPD                  ${color white}: ${lua_parse check_adei_source katrin.kit.edu 22 adei katrin fpd katrin_rep}
  ${color cyan}MOS/ZEUS             ${color white}: ${lua_parse check_adei_source katrin.kit.edu 22 adei katrin mos Monitorspeczeus_rep}
  ${color cyan}MOS/OPC              ${color white}: ${lua_parse check_adei_source katrin.kit.edu 22 adei katrin mos0 MonitorSpec_rep HV}
  ${color cyan}Air Coils            ${color white}: ${lua_parse check_adei_source katrin.kit.edu 22 adei katrin aircoils aircoils_rep}
  ${color cyan}Magnetometer         ${color white}: ${lua_parse check_adei_source katrin.kit.edu 22 adei katrin magnetometer0 dbMagnet-archive_rep}
#  ${color cyan}Control System       ${color white}: ${lua_parse check_adei_source katrin.kit.edu 22 adei katrin cs0 ControlSystem_rep .*}
${color white}ikkatrinadei ${goto 160}${lua_parse check_server_status 192.168.110.67 22 adei}${color white}
  ${color cyan}FPD                  ${color white}: ${lua_parse check_adei_source 192.168.110.67 22 adei detector detector katrin}
  ${color cyan}MOS                  ${color white}: ${lua_parse check_adei_source 192.168.110.67 22 adei detector monitorspec monitorspec}
  ${color cyan}Air Coils            ${color white}: ${lua_parse check_adei_source 192.168.110.67 22 adei detector aircoils aircoils}
${color white}imkmastadei ${goto 160}${lua_parse check_server_status imkmastadei.ka.fzk.de 22 adei}${color white}
  ${color cyan}Weather Tower        ${color white}: ${lua_parse check_adei_source imkmastadei.ka.fzk.de 22 adei wt mast Mastdaten_rep '.*(Licor|Sonic|Calc|Archive)'}
#${color white}cube-router${goto 160}${lua_parse check_server_status cube-router.ipe.kit.edu 24 adei}${color white}
#  ${color cyan}KIT Cube         ${color white}: ${lua_parse check_adei_source cube-router.ka.fzk.de 24 adei kitcube kitcube kitcube_actual .*}
${color white}itepmtadei	 ${goto 160}${lua_parse check_server_status itepmtadei.itep.kit.edu 22 adei}${color white}
  ${color cyan}TOSKA                ${color white}: ${lua_parse check_adei_source itepmtadei.itep.kit.edu 22 adei toska toska \\#1 .*}
${color white}pcebessadei ${goto 160}${lua_parse check_server_status pcebessadei.competence-e.kit.edu 22 adei}${color white}
  ${color cyan}BESS50               ${color white}: ${lua_parse check_adei_source pcebessadei.competence-e.kit.edu 22 adei battery battery \\#1 .*}
  ${color cyan}BESS32/Socket        ${color white}: ${lua_parse check_adei_source pcebessadei.competence-e.kit.edu 22 adei battery bess32-ac-sock \\#1 .*}
  ${color cyan}BESS32/MDF           ${color white}: ${lua_parse check_adei_source pcebessadei.competence-e.kit.edu 22 adei battery bess32-ac-mdf \\#1 .*}
  ${color cyan}BESS32/MDF           ${color white}: ${lua_parse check_adei_source pcebessadei.competence-e.kit.edu 22 adei battery bess32-ac-mdf \\#1 .*}
  ${color cyan}PV1000               ${color white}: ${lua_parse check_adei_source pcebessadei.competence-e.kit.edu 22 adei battery pvcn1000 \\#1 .*}
  ${color cyan}Weather              ${color white}: ${lua_parse check_adei_source pcebessadei.competence-e.kit.edu 22 adei battery mast Mastdaten_rep .*}
#${color white}Tango${goto 160}${template1 ipepdvtango2.ipe.kit.edu} 
${color white}IpeCube ${goto 160}${template0 ipecube.ipe.kit.edu}${lua_parse print_server_errors $template8 conky_netstat}

${color yellow}Network Connections ${hr}
${color white}Incomming connections${color gray}:
${execpi $template5 /etc/conky/scripts/netstat-in.sh | grep -v "android-d855cbd1c9f827d" | grep -v "pdv-time-capsule-2.ipe.kit.edu" | awk -e '{ print "${goto 18}", $1, "${goto 720} to", $2 }' }
#${lua_parse conky_eval $${lua_parse multiply_line ${tcp_portmon 1 32767 count} $${goto 18}$${tcp_portmon 1 32767 rhost @i@}:$${tcp_portmon 1 32767 rport @i@}$${goto 720}to$${offset 18} $${tcp_portmon 1 32767 lport @i@}}}
${color white}Outgoing connections${color gray}:
#${lua_parse conky_eval $${lua_parse multiply_line ${tcp_portmon 32768 65535 count} $${goto 18}$${tcp_portmon 32768 65535 rhost @i@}:$${tcp_portmon 32768 65535 rport @i@}$${goto 400}from $${tcp_portmon 32768 65535 lport @i@}}}
${lua_parse conky_outcon 18 720}