Changeset 3290 for monitoring


Ignore:
Timestamp:
08/06/13 15:42:23 (11 years ago)
Author:
sanmai
Message:
  • Fix test script.
  • Add column to MPI monitoring checks table for -b parameter used by check_clarin_ldap.py
Location:
monitoring/plugins/mpi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • monitoring/plugins/mpi/integration_test.R

    r3289 r3290  
    1313## test_results has a value equal to the exit status of the scripts with arguments command_line_arguments run.
    1414
    15 test_results <-
     15check_exit_status <-
    1616    base:::integer(length = base:::nrow(checks_info));
    17 test_stdout <-
     17check_stdout <-
    1818    base:::character(length = base:::nrow(checks_info));
    1919#test_stderr
     
    2626for (test_index in 1L:base:::nrow(checks_info))
    2727{
    28     base:::message(base:::paste("Running test", test_index));
     28    base:::message(base:::paste("Checking", checks_info[test_index,]$description, "..."));
    2929
    3030    command_line <-
     
    3737                     '-u', checks_info[test_index,]$`-u`);
    3838    }
     39    if (checks_info[test_index,]$`-b` != "") {
     40        command_line <-
     41            base:::c(command_line,
     42                     '-b', checks_info[test_index,]$`-b`);
     43    }
    3944
    4045    test_output <-
     
    4651    ## Fetch exit status codes. 
    4752    if(!base:::is.null(base:::attr(test_output, "status"))) {
    48         test_results[test_index] <-
     53        check_exit_status[test_index] <-
    4954            base:::as.integer(base:::attr(test_output, "status"));
    5055    } else {
    51         test_results[test_index] <-
     56        check_exit_status[test_index] <-
    5257            0L;
    5358    };
    5459
    55     test_stdout[test_index] <-
     60    check_stdout[test_index] <-
    5661        base:::paste(test_output,
    5762                      sep = "\n",
     
    6974    base:::data.frame(description             = checks_info$description,
    7075                      command_line            = base:::unlist(command_lines),
    71                       test_results            = test_results,
    72                       test_stdout             = test_stdout,
     76                      check_exit_status       = check_exit_status,
     77                      check_stdout            = check_stdout,
    7378                      stringsAsFactors        = FALSE);
    7479
     
    7681
    7782test_results_file_path <-
    78     "/tmp/test_results.tab";
     83    "/tmp/Nagios_checks_test.tab";
    7984
    8085utils:::write.table(test_results_df,
  • monitoring/plugins/mpi/plugins_hosts_services.tab

    r3275 r3290  
    1 file name       description     -h      protocol        -u
    2 check_lat_cql_endpoint.py       CQL endpoint    cqlservlet.mpi.nl       http    '/'
    3 check_clarin_vlo.py     Virtual Language Observatory    catalog.clarin.eu       http    '/vlo/'
    4 check_clarin_comp_reg.py        Component Registry      catalog.clarin.eu       http    '/ds/ComponentRegistry/'
    5 check_lat_lexus.py      Lexus   corpus1.mpi.nl  http    '/mpi/lexusDojo/'
    6 check_lat_lamus.py      Lamus   corpus1.mpi.nl  http    '/jkc/lamus/lamusstart.jsp'
    7 check_lat_imdi.py       IMDI browser    lux17.mpi.nl    http    '/ds/imdi_browser/viewcontroller?request=view&nodeid=MPI299144%23'
    8 check_lat_imdi.py       IMDI browser    corpus1.mpi.nl  http    '/ds/imdi_browser/viewcontroller?request=view&nodeid=MPI299144%23'
    9 check_lat_handle.py     Handle  hdl.handle.net  http    '/?hdl=1839%2F00-0000-0000-0000-0000-4&auth=x'
    10 check_lat_annex.py      Annex   corpus1.mpi.nl  http    '/ds/annex/runLoader?nodeid=MPI600401%23'
    11 check_lat_oai_endpoint.py       OAI-PMH corpus1.mpi.nl  http    '/ds/oaiprovider/oai2?verb=Identify'
    12 check_clarin_saml.py    SAML    www.clarin.eu   https   
    13 check_clarin_discojuice_json.py Discojuice JSON catalog.clarin.eu       http    '/mw1/sds/discojuice'
    14 check_clarin_discojuice_json.py Discojuice JSON catalog.clarin.eu       http    '/mw2/sds/discojuice'
    15 check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu       http    '/discojuice/metadata_clarin1.json'
    16 check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu       http    '/discojuice/metadata_clarin2.json'
    17 check_lat_avatech_clam.py       AVATecH CLAM    lux17.mpi.nl    http    '/avatech/avatech_iais_fine_segmentation'
    18 check_clarin_ldap.py    LDAP directory  user.clarin.eu  ldap   
     1file name       description     -h      protocol        -u      -b
     2check_lat_cql_endpoint.py       CQL endpoint    cqlservlet.mpi.nl       http    '/'     
     3check_clarin_vlo.py     Virtual Language Observatory    catalog.clarin.eu       http    '/vlo/' 
     4check_clarin_comp_reg.py        Component Registry      catalog.clarin.eu       http    '/ds/ComponentRegistry/'       
     5check_lat_lexus.py      Lexus   corpus1.mpi.nl  http    '/mpi/lexusDojo/'       
     6check_lat_lamus.py      Lamus   corpus1.mpi.nl  http    '/jkc/lamus/lamusstart.jsp'     
     7check_lat_imdi.py       IMDI browser    lux17.mpi.nl    http    '/ds/imdi_browser/viewcontroller?request=view&nodeid=MPI299144%23'     
     8check_lat_imdi.py       IMDI browser    corpus1.mpi.nl  http    '/ds/imdi_browser/viewcontroller?request=view&nodeid=MPI299144%23'     
     9check_lat_handle.py     Handle  hdl.handle.net  http    '/?hdl=1839%2F00-0000-0000-0000-0000-4&auth=x' 
     10check_lat_annex.py      Annex   corpus1.mpi.nl  http    '/ds/annex/runLoader?nodeid=MPI600401%23'       
     11check_lat_oai_endpoint.py       OAI-PMH corpus1.mpi.nl  http    '/ds/oaiprovider/oai2?verb=Identify'   
     12check_clarin_saml.py    SAML    www.clarin.eu   https          
     13check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu       http    '/mw1/sds/discojuice'   
     14check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu       http    '/mw2/sds/discojuice'   
     15check_clarin_discojuice_json.py Discojuice JSON catalog.clarin.eu       http    '/discojuice/metadata_clarin1.json'     
     16check_clarin_discojuice_json.py Discojuice JSON catalog.clarin.eu       http    '/discojuice/metadata_clarin2.json'     
     17check_lat_avatech_clam.py       AVATecH CLAM    lux17.mpi.nl    http    '/avatech/avatech_iais_fine_segmentation'       
     18check_clarin_ldap.py    LDAP directory  user.clarin.eu  ldap    cn=Directory Manager
Note: See TracChangeset for help on using the changeset viewer.