commit | c8b8c22908bda914072ee91d8e7ccdb056dd6b72 | [log] [tgz] |
---|---|---|
author | Dmitry Kalashnik <dkalashnik@mirantis.com> | Mon Nov 25 13:30:49 2019 +0400 |
committer | Dmitry Kalashnik <dkalashnik@mirantis.com> | Mon Nov 25 13:30:49 2019 +0400 |
tree | 7d22cf8e50366940cc67a46e1330ad136a5af340 | |
parent | cb752bc32092212bf3e9731c7db71032a27f9ac4 [diff] |
Add logging for arp ping exceptions Change-Id: I754b989ca81501f1948472ca51bae647c0320e52 PROD-related: PROD-33709
diff --git a/telegraf/files/script/check_ovs_arping.py b/telegraf/files/script/check_ovs_arping.py index efc78a0..5a21f00 100644 --- a/telegraf/files/script/check_ovs_arping.py +++ b/telegraf/files/script/check_ovs_arping.py
@@ -10,6 +10,7 @@ import socket import struct import subprocess +import sys import time import requests @@ -352,5 +353,7 @@ try: gather() print "instance_arping check_up=1" - except Exception: + except Exception as e: print "instance_arping check_up=0" + sys.stderr.write(str(e)) + sys.exit(1)