From 18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 10 Jan 2019 06:43:26 +0100 Subject: Update troubleshooting documentation --- roles/ands_monitor/templates/scripts/check_server_status.sh.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roles') diff --git a/roles/ands_monitor/templates/scripts/check_server_status.sh.j2 b/roles/ands_monitor/templates/scripts/check_server_status.sh.j2 index b02f031..0bef13c 100755 --- a/roles/ands_monitor/templates/scripts/check_server_status.sh.j2 +++ b/roles/ands_monitor/templates/scripts/check_server_status.sh.j2 @@ -43,3 +43,13 @@ vssize=$(du -sm /var/log/openvswitch/ovs-vswitchd.log | cut -f 1) if [ "$vssize" -gt 128 ]; then echo "Current OpenVSwitch log is over $vssize MB. It could indicate some severe problems in pod networking..." fi + +host google.com &> /dev/null +if [ $? -ne 0 ]; then + echo "DNS problems, can't resolve google.com" +fi + +ping -c 1 -W 2 8.8.8.8 &> /dev/null +if [ $? -ne 0 ]; then + echo "Networkign problems, can't ping Google's public DNS server" +fi -- cgit v1.2.3