Merge branch 'general-purpose-scripts' of https://git.iternity.dev/thomas.gebert/coyote into general-purpose-scripts
This commit is contained in:
commit
aac2688096
@ -32,5 +32,39 @@ header1 "Check Mailing
|
|||||||
# - correct recipient address"
|
# - correct recipient address"
|
||||||
ansible -b all -m shell -a "grep -H ^relayhost /etc/postfix/main.cf; grep -H '^\ *from' /etc/kapacitor/kapacitor.conf"
|
ansible -b all -m shell -a "grep -H ^relayhost /etc/postfix/main.cf; grep -H '^\ *from' /etc/kapacitor/kapacitor.conf"
|
||||||
|
|
||||||
|
#!/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
|
header1 "Do some generic tests with
|
||||||
# fs-manager check all"
|
# fs-manager check all"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user