summaryrefslogtreecommitdiffstats
path: root/remote/ipeserv.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-25 06:06:41 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-25 06:06:41 +0200
commit16e27beaa24c6c551eaa0d3e6d115017939593a1 (patch)
tree61aea994bfc76e9f0053b26a42406e456c2a962e /remote/ipeserv.sh
parentb2d1ca40d5bd1015a37cc243000b636eefc3d128 (diff)
downloadconky-16e27beaa24c6c551eaa0d3e6d115017939593a1.tar.gz
conky-16e27beaa24c6c551eaa0d3e6d115017939593a1.tar.bz2
conky-16e27beaa24c6c551eaa0d3e6d115017939593a1.tar.xz
conky-16e27beaa24c6c551eaa0d3e6d115017939593a1.zip
Support multi-reports
Diffstat (limited to 'remote/ipeserv.sh')
-rw-r--r--remote/ipeserv.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/remote/ipeserv.sh b/remote/ipeserv.sh
new file mode 100644
index 0000000..9f314a1
--- /dev/null
+++ b/remote/ipeserv.sh
@@ -0,0 +1,15 @@
+#! /bin/bash
+
+[ -z $report ] && source lib/status.sh
+
+function check_ipe {
+ check "katrin" "katrin.kit.edu" "check_server_status <host>"
+ check "ipepdvsrv1" "ipepdvsrv1.ipe.kit.edu" "check_server_status <host>"
+ check "ipepdvsrv2" "ipepdvsrv2.ipe.kit.edu" "check_server_status <host>"
+ check "ipekatrin1" "ipekatrin1.ipe.kit.edu" "check_server_status <host> uptime"
+ check "ipekatrin2" "ipekatrin2.ipe.kit.edu" "check_server_status <host> uptime"
+ check "ipekatrin3" "ipekatrin3.ipe.kit.edu" "check_server_status <host> uptime"
+}
+
+print "IPE Servers\n"
+report "check_ipe" " print_table | sed 's/,/,#/g' | column -t -s '#' -o '' | decorate_table"