diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-01-10 06:43:26 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-01-10 06:43:26 +0100 |
commit | 18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea (patch) | |
tree | 3587258407d9264386a4ef859feea257d63aaacf /roles/ands_monitor/templates | |
parent | 5d0ecffcf763c757470287b2fab55feabfcc0971 (diff) | |
download | ands-18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea.tar.gz ands-18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea.tar.bz2 ands-18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea.tar.xz ands-18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea.zip |
Update troubleshooting documentation
Diffstat (limited to 'roles/ands_monitor/templates')
-rwxr-xr-x | roles/ands_monitor/templates/scripts/check_server_status.sh.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
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 |