Changeset 2034


Ignore:
Timestamp:
07/13/12 15:34:44 (12 years ago)
Author:
sanmai
Message:
  • Fix environment variable problem with the external SAML validation shell script for the SAML Nagios monitoring plugin.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • monitoring/plugins/mpi/check_clarin_saml.py

    r2033 r2034  
    5555        return(False)
    5656
     57    #pdb.set_trace()
     58
    5759    check_saml_metadata_file_path       = os.path.join(CLARIN_server_root_directory_path, "aai/check-saml-metadata/check_saml_metadata.sh")
    58    
     60
    5961    temporary_file                      = tempfile.NamedTemporaryFile(mode   = 'wb')                                   
    6062    temporary_file.write(data)
     
    6365    XML_response_metadata_file_path     = temporary_file.name
    6466
    65 
    6667    command                             = [check_saml_metadata_file_path, XML_response_metadata_file_path]
    6768
    68        
     69    environment_variables               = { "JAVA_HOME" : '/usr/lib/jvm/java-6-openjdk/jre/' }
    6970    process                             = subprocess.Popen(command,
    7071                                                           stdout = subprocess.PIPE,
    71                                                            stderr = subprocess.PIPE)
     72                                                           stderr = subprocess.PIPE,
     73                                                           env    = environment_variables)
    7274
    7375    stdout, stderr                      = process.communicate()
Note: See TracChangeset for help on using the changeset viewer.