From 72fdbb82b5554a0993b0aff6f8a2784d775e4d4b Mon Sep 17 00:00:00 2001 From: Thomas Gebert Date: Wed, 30 Jul 2025 10:36:28 +0200 Subject: [PATCH] Script for checking basic settings after an installation --- gp-scripts/checkup.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gp-scripts/checkup.sh diff --git a/gp-scripts/checkup.sh b/gp-scripts/checkup.sh new file mode 100644 index 0000000..7ec68ed --- /dev/null +++ b/gp-scripts/checkup.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +################################################################################ +# Global variables +################################################################################ +ANSIBLE_CMD="ansible -i /etc/filescale/cluster.ansible.yml" + +################################################################################ +# Functions +################################################################################ +header1() { +cat << HEADER1 + +################################################################################ +# ${@} +################################################################################ +HEADER1 +} + +################################################################################ +# Main Main Main +################################################################################ + +header1 "Check NTP/Chrony +# - correct address/name +# - Reach is > 0" +${ANSIBLE_CMD} -b all -m shell -a "chronyc sources" + +header1 "Check Mailing +# - correct relay address/name +# - correct sender address +# - correct recipient address" +ansible -b all -m shell -a "grep -H ^relayhost /etc/postfix/main.cf; grep -H '^\ *from' /etc/kapacitor/kapacitor.conf" + +header1 "Do some generic tests with +# fs-manager check all"