Script for checking basic settings after an installation

This commit is contained in:
Thomas Gebert 2025-07-30 10:36:28 +02:00
parent 26fa3016fd
commit e3e9dd32df

33
gp-scripts/checkup.sh Normal file
View File

@ -0,0 +1,33 @@
#!/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"