IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34016


Ignore:
Timestamp:
Jun 14, 2012, 3:22:48 PM (14 years ago)
Author:
Serge CHASTEL
Message:

Changed smtp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/supervision/check_if_mysql_slave_is_running_fine.py

    r34015 r34016  
    2525    _to = [recipient]
    2626    message['To'] = recipient
    27     SMTP_CONNECTION = smtplib.SMTP('ippc18.ifa.hawaii.edu')
     27    SMTP_CONNECTION = smtplib.SMTP('hale.ifa.hawaii.edu')
    2828    SMTP_CONNECTION.sendmail(_from, _to, message.as_string())
    2929    SMTP_CONNECTION.quit()
     
    4747      Master_SSL_Allowed, Master_SSL_CA_File, Master_SSL_CA_Path, Master_SSL_Cert,
    4848      Master_SSL_Cipher, Master_SSL_Key, Seconds_Behind_Master) = cursor.fetchall()[0]
     49    nodename = socket.gethostbyaddr(socket.gethostname())[0].split('.')[0]
    4950    if Seconds_Behind_Master is None:
    50         nodename = socket.gethostbyaddr(socket.gethostname())[0].split('.')[0]
    5151        if Last_Error != '':
    5252            send_email(RECIPIENT,
Note: See TracChangeset for help on using the changeset viewer.