diff options
author | James Meyer <james.meyer@operamail.com> | 2013-12-03 22:15:31 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-12-03 22:15:31 (GMT) |
commit | ba4ef74d5cd87084bd5c328fbbc254208e5e84a6 (patch) | |
tree | e9c046d32a2f7f349456cd85813e55a6fbe52b9a /abs/core/xymon/hobbit_myth_data.py | |
parent | 8c3ad44135b42290b15395fdcb5a5167a33b4788 (diff) | |
download | linhes_pkgbuild-ba4ef74d5cd87084bd5c328fbbc254208e5e84a6.zip linhes_pkgbuild-ba4ef74d5cd87084bd5c328fbbc254208e5e84a6.tar.gz linhes_pkgbuild-ba4ef74d5cd87084bd5c328fbbc254208e5e84a6.tar.bz2 |
xymon: init line when looking for the Finish line in mtc
refs #945
Diffstat (limited to 'abs/core/xymon/hobbit_myth_data.py')
-rwxr-xr-x | abs/core/xymon/hobbit_myth_data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/abs/core/xymon/hobbit_myth_data.py b/abs/core/xymon/hobbit_myth_data.py index 3c7ad49..ac56903 100755 --- a/abs/core/xymon/hobbit_myth_data.py +++ b/abs/core/xymon/hobbit_myth_data.py @@ -59,6 +59,7 @@ def set_color(color_code): def check_mtc(mtc_file): + line='' try: infile = open(mtc_file, 'r') except(IOError), e: @@ -97,7 +98,7 @@ def find_data_left(): now = datetime.datetime.now() #date = "%s-%s-%s" %(now.year, now.month, now.day) date = (now.strftime('%Y-%m-%d')) - +#2013-12-03 mtc_file = "/var/log/%s/myth_mtc.log" %date mtc=check_mtc(mtc_file) |