代码拉取完成,页面将自动刷新
#!/bin/bash
echo "Collect the first set of snapshots (only for K*** reports)..."
HOSTS=$CHECKUP_HOSTS
if [[ ! -z ${PG_CHECKUP_HOSTS+x} ]]; then
HOSTS=$PG_CHECKUP_HOSTS
fi
if [[ ! -z ${SSH_CHECKUP_HOSTS+x} ]]; then
HOSTS=$SSH_CHECKUP_HOSTS
fi
for host in $HOSTS; do
./checkup collect \
--config "${CHECKUP_CONFIG_PATH}" \
--hostname "${host}" \
--file resources/checks/K000_query_analysis.sh
done
echo "The first set of snapshots has been created. Wait ${CHECKUP_SNAPSHOT_DISTANCE_SECONDS} seconds..."
sleep "${CHECKUP_SNAPSHOT_DISTANCE_SECONDS}"
# the distance ^^^ recommended: large enough to get good data, at least 10 minutes
echo "Collect the second set of snapshots and build reports..."
for host in $HOSTS; do
./checkup collect \
--config "${CHECKUP_CONFIG_PATH}" \
--hostname "${host}"
done
echo "Generate human-readable reports..."
./checkup process --config "${CHECKUP_CONFIG_PATH}"
echo "Upload the report to Postgres.ai platform..."
./checkup upload --config "${CHECKUP_CONFIG_PATH}"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。