summaryrefslogtreecommitdiffstats
path: root/netstat.conf
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-04-16 10:30:15 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-04-16 10:30:15 +0200
commit55783753ae8f2d857a7225b7a93c1d47039e5a90 (patch)
treee077b61b0f004141712e7d16876f9c19175ac681 /netstat.conf
downloadconky-55783753ae8f2d857a7225b7a93c1d47039e5a90.tar.gz
conky-55783753ae8f2d857a7225b7a93c1d47039e5a90.tar.bz2
conky-55783753ae8f2d857a7225b7a93c1d47039e5a90.tar.xz
conky-55783753ae8f2d857a7225b7a93c1d47039e5a90.zip
OpenShift monitoring
Diffstat (limited to 'netstat.conf')
-rw-r--r--netstat.conf73
1 files changed, 73 insertions, 0 deletions
diff --git a/netstat.conf b/netstat.conf
new file mode 100644
index 0000000..62f9261
--- /dev/null
+++ b/netstat.conf
@@ -0,0 +1,73 @@
+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}Cluster ${hr}${lua set_width $template2}${lua set_timeout $template3}
+${color white}KaaS ${goto 160}${lua_parse check_service_ kaas kaas.kit.edu 3}${color white}
+${color white}KaaS/Gluster ${goto 160}${lua_parse check_service_ gluster kaas.kit.edu}${color white}
+
+${color yellow}Servers ${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}ipepdvsrv2 ${goto 160}${lua_parse check_server_status ipepdvsrv2.ipe.kit.edu}
+${color white}katrin ${goto 160}${lua_parse check_server_status katrin.kit.edu}
+${color white}ipekatrin1 ${goto 160}${lua_parse check_server_status ipekatrin1.ipe.kit.edu 22 uptime}
+${color white}ipekatrin2 ${goto 160}${lua_parse check_server_status ipekatrin2.ipe.kit.edu 22 uptime}
+${color white}ipekatrin3 ${goto 160}${lua_parse check_server_status ipekatrin3.ipe.kit.edu 22 uptime}
+
+${color yellow}ADEI ${hr}${lua set_width $template2}${lua set_timeout $template3}
+${color white}KaaS ${goto 160}${lua_parse check_service_ adei kaas adei-katrin.kaas.kit.edu/adei 'db_server=fpd&db_name=katrin_rep&db_group=0'}${color white}
+${color white}ipekatrinadei ${goto 160}${lua_parse check_service_ adei katrin katrin.kit.edu/adei-katrin-orig 'db_server=fpd&db_name=katrin_rep&db_group=0'}${color white}
+${color white}pcebessadei ${goto 160}${lua_parse check_service_ adei pcebess pcebessadei.competence-e.kit.edu/adei-battery}${color white}
+${color white}ipemkmastadei ${goto 160}${lua_parse check_service_ adei imkmast imkmastadei.ka.fzk.de/adei}${color white}
+${color white}itepmtadei ${goto 160}${lua_parse check_service_ adei itepmt itepmtadei.itep.kit.edu/adei}${color white}
+${color white}CRD ${goto 160}${lua_parse check_service_ adei crd adei.crd.yerphi.am/adei}${color white}
+${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 }' }
+${color white}Outgoing connections${color gray}:
+${lua_parse conky_outcon 18 720}