summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/hobbit_myth_data.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-12-03 18:28:48 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-12-03 18:28:48 (GMT)
commit8c3ad44135b42290b15395fdcb5a5167a33b4788 (patch)
tree437a5a988ea5941be2ac3c01ca33545ac6b44974 /abs/core/xymon/hobbit_myth_data.py
parentb1e1aee98b199446c5322507fd675dcd6301d846 (diff)
downloadlinhes_pkgbuild-8c3ad44135b42290b15395fdcb5a5167a33b4788.zip
linhes_pkgbuild-8c3ad44135b42290b15395fdcb5a5167a33b4788.tar.gz
linhes_pkgbuild-8c3ad44135b42290b15395fdcb5a5167a33b4788.tar.bz2
xymon: set mythfrontend to go yellow instead of red, fix timestamp format for checking the mtc log.
refs #945
Diffstat (limited to 'abs/core/xymon/hobbit_myth_data.py')
-rwxr-xr-xabs/core/xymon/hobbit_myth_data.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/abs/core/xymon/hobbit_myth_data.py b/abs/core/xymon/hobbit_myth_data.py
index 52d6a6b..3c7ad49 100755
--- a/abs/core/xymon/hobbit_myth_data.py
+++ b/abs/core/xymon/hobbit_myth_data.py
@@ -95,7 +95,9 @@ def find_data_left():
now = datetime.datetime.now()
-date = "%s-%s-%s" %(now.year, now.month, now.day)
+#date = "%s-%s-%s" %(now.year, now.month, now.day)
+date = (now.strftime('%Y-%m-%d'))
+
mtc_file = "/var/log/%s/myth_mtc.log" %date
mtc=check_mtc(mtc_file)