From 16e27beaa24c6c551eaa0d3e6d115017939593a1 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Aug 2019 06:06:41 +0200 Subject: Support multi-reports --- remote/ipeserv.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 remote/ipeserv.sh (limited to 'remote/ipeserv.sh') 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 " + check "ipepdvsrv1" "ipepdvsrv1.ipe.kit.edu" "check_server_status " + check "ipepdvsrv2" "ipepdvsrv2.ipe.kit.edu" "check_server_status " + check "ipekatrin1" "ipekatrin1.ipe.kit.edu" "check_server_status uptime" + check "ipekatrin2" "ipekatrin2.ipe.kit.edu" "check_server_status uptime" + check "ipekatrin3" "ipekatrin3.ipe.kit.edu" "check_server_status uptime" +} + +print "IPE Servers\n" +report "check_ipe" " print_table | sed 's/,/,#/g' | column -t -s '#' -o '' | decorate_table" -- cgit v1.2.3