X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=findbad.py;fp=findbad.py;h=630f1c556a0a745d3a22b48de01f19986c8f6852;hb=c9b0045bba8ab66adf5036f9cac7f37f476b9a69;hp=2aabe011ce68f6877d569c840c1c55fbd28aed20;hpb=bd1d95501145812fbe690d9ca62dff5677eca505;p=monitor.git diff --git a/findbad.py b/findbad.py index 2aabe01..630f1c5 100755 --- a/findbad.py +++ b/findbad.py @@ -81,6 +81,8 @@ EOF """) 'princeton_comon_procs' : '', 'sshport' : None}) except: print traceback.print_exc() + from nodecommon import email_exception + email_exception() sys.exit(1) ### RUN SSH ###################### @@ -203,6 +205,8 @@ EOF """) except: b_except = True traceback.print_exc() + from nodecommon import email_exception + email_exception() plc_lock.release() if b_except: return (None, None) @@ -240,6 +244,8 @@ EOF """) except: b_except = True traceback.print_exc() + from nodecommon import email_exception + email_exception() plc_lock.release() if b_except: return (None, None) @@ -397,6 +403,8 @@ if __name__ == '__main__': main() except Exception, err: print traceback.print_exc() + from nodecommon import email_exception + email_exception() print "Exception: %s" % err print "Saving data... exitting." database.dbDump(config.dbname, externalState)