We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26c79d commit 600b759Copy full SHA for 600b759
health-check.sh
@@ -30,6 +30,10 @@ echo "The Health Check Report has been saved in tmp/ folder." | tee -a "$logfile
30
# Extract valid remote hostnames from /etc/hosts
31
remote_hosts=$(awk '$1 ~ /^[0-9]+(\.[0-9]+){3}$/ && $2 !~ /localhost/ {print $2}' /etc/hosts | sort -u)
32
33
+if [ -z "$remote_hosts" ]; then
34
+ remote_hosts=$(hostname)
35
+fi
36
+
37
collect_from_all_hosts() {
38
local cmd="$1"
39
local file_prefix="$2"
0 commit comments