Changeset 3313 for monitoring


Ignore:
Timestamp:
08/08/13 09:42:04 (11 years ago)
Author:
sanmai
Message:
  • Fix handling of -d command line parameter.
Location:
monitoring/plugins/mpi
Files:
2 edited

Legend:

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

    r3308 r3313  
    1515                           ("-d", "infra.clarin.eu root directory path",)]
    1616
    17 nagios_codes = {
    18                 'OK'        : 0,
    19                 'WARNING'   : 1,
    20                 'CRITICAL'  : 2,
    21                 'UNKNOWN'   : 3,
    22                 'DEPENDENT' : 4
    23                 }
    24 
    2517def nagios_return(code, response) :
    2618    """ prints the response message
     
    3022    """
    3123    print code + ": " + response
    32     sys.exit(nagios_codes[code])
     24    sys.exit(generic_tla_monitoring.nagios_codes[code])
     25
    3326
    3427def check_response_data_validity(data, CLARIN_server_root_directory_path) :
  • monitoring/plugins/mpi/integration_test.R

    r3311 r3313  
    4545        command_line <-
    4646            base:::c(command_line,
    47                      '-b', checks_info[test_index,]$`-b`);
     47                     '-d', checks_info[test_index,]$`-d`);
    4848    }
    4949
Note: See TracChangeset for help on using the changeset viewer.