Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit c791451

Browse files
committed
feat: support pg and ssh hosts in run_checkup.sh
Support of pg and ssh hostnames in run_checkup.sh added
2 parents b45c4d2 + f7481e0 commit c791451

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

run_checkup.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/bin/bash
22

33
echo "Collect the first set of snapshots (only for K*** reports)..."
4+
5+
HOSTS=$CHECKUP_HOSTS
6+
if [[ ! -z ${PG_CHECKUP_HOSTS+x} ]]; then
7+
HOSTS=$PG_CHECKUP_HOSTS
8+
fi
9+
if [[ ! -z ${SSH_CHECKUP_HOSTS+x} ]]; then
10+
HOSTS=$SSH_CHECKUP_HOSTS
11+
fi
12+
413
for host in $CHECKUP_HOSTS; do
514
./checkup collect \
615
--config "${CHECKUP_CONFIG_PATH}" \
@@ -13,7 +22,7 @@ sleep "${CHECKUP_SNAPSHOT_DISTANCE_SECONDS}"
1322
# the distance ^^^ recommended: large enough to get good data, at least 10 minutes
1423

1524
echo "Collect the second set of snapshots and build reports..."
16-
for host in $CHECKUP_HOSTS; do
25+
for host in $HOSTS; do
1726
./checkup collect \
1827
--config "${CHECKUP_CONFIG_PATH}" \
1928
--hostname "${host}"

0 commit comments

Comments
 (0)