summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/remote/report.sh3
-rw-r--r--netstat.conf2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/remote/report.sh b/lib/remote/report.sh
index e6766a4..434c6aa 100644
--- a/lib/remote/report.sh
+++ b/lib/remote/report.sh
@@ -1,7 +1,10 @@
function simple_report {
local generator="$1"
local filter="${2:-cat}"
+
+ # Create fd12 (sending empty output), execute checks (writting extra info on fd12), print main info and store extra info into variable, wait for termination of async checks.
{
+ chmod +w /dev/fd/12
eval "$generator 12>/dev/fd/12 | $filter"
report=$(cat<&12)
} 12<<EOF
diff --git a/netstat.conf b/netstat.conf
index c7d8f58..dfd9174 100644
--- a/netstat.conf
+++ b/netstat.conf
@@ -53,7 +53,7 @@ ${color white}KaaS/Router ${goto 160}${lua_parse check_service_ router iperouter
${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}ipepdvarchive ${goto 160}${lua_parse check_server_status ipepdvarchive.ipe.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}