git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show/hide advance query form.
[monitor.git]
/
showlatlon.py
diff --git
a/showlatlon.py
b/showlatlon.py
index
1d06594
..
31fbeb1
100755
(executable)
--- a/
showlatlon.py
+++ b/
showlatlon.py
@@
-4,12
+4,12
@@
from monitor.wrapper import plc, plccache
api = plc.getAuthAPI()
import sys
api = plc.getAuthAPI()
import sys
-import reboot
+
#
import reboot
from datetime import datetime, timedelta
from datetime import datetime, timedelta
-import database
+from monitor.database.info.model import *
import comon
import comon
-from monitor.common import color_pcu_state, datetime_fromstr
+from monitor.common import color_pcu_state, datetime_fromstr
, email_exception
from nodehistory import get_filefromglob
import time
import traceback
from nodehistory import get_filefromglob
import time
import traceback
@@
-83,8
+83,8
@@
def main():
begin = time.strftime(format)
d = datetime_fromstr(begin)
begin = time.strftime(format)
d = datetime_fromstr(begin)
- fbstr = get_filefromglob(d, "production.findbad")
- fbpcustr = get_filefromglob(d, "production.findbadpcus")
+ fbstr = get_filefromglob(d, "production.findbad")
[0]
+ fbpcustr = get_filefromglob(d, "production.findbadpcus")
[0]
l_plcnodes = plccache.l_nodes
l_plcsites = plccache.l_sites
l_plcnodes = plccache.l_nodes
l_plcsites = plccache.l_sites
@@
-211,3
+211,5
@@
if __name__ == "__main__":
main()
except IOError:
pass
main()
except IOError:
pass
+ except:
+ email_exception()