Changeset 3290 for monitoring
- Timestamp:
- 08/06/13 15:42:23 (11 years ago)
- Location:
- monitoring/plugins/mpi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/integration_test.R
r3289 r3290 13 13 ## test_results has a value equal to the exit status of the scripts with arguments command_line_arguments run. 14 14 15 test_results <-15 check_exit_status <- 16 16 base:::integer(length = base:::nrow(checks_info)); 17 test_stdout <-17 check_stdout <- 18 18 base:::character(length = base:::nrow(checks_info)); 19 19 #test_stderr … … 26 26 for (test_index in 1L:base:::nrow(checks_info)) 27 27 { 28 base:::message(base:::paste(" Running test", test_index));28 base:::message(base:::paste("Checking", checks_info[test_index,]$description, "...")); 29 29 30 30 command_line <- … … 37 37 '-u', checks_info[test_index,]$`-u`); 38 38 } 39 if (checks_info[test_index,]$`-b` != "") { 40 command_line <- 41 base:::c(command_line, 42 '-b', checks_info[test_index,]$`-b`); 43 } 39 44 40 45 test_output <- … … 46 51 ## Fetch exit status codes. 47 52 if(!base:::is.null(base:::attr(test_output, "status"))) { 48 test_results[test_index] <-53 check_exit_status[test_index] <- 49 54 base:::as.integer(base:::attr(test_output, "status")); 50 55 } else { 51 test_results[test_index] <-56 check_exit_status[test_index] <- 52 57 0L; 53 58 }; 54 59 55 test_stdout[test_index] <-60 check_stdout[test_index] <- 56 61 base:::paste(test_output, 57 62 sep = "\n", … … 69 74 base:::data.frame(description = checks_info$description, 70 75 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, 73 78 stringsAsFactors = FALSE); 74 79 … … 76 81 77 82 test_results_file_path <- 78 "/tmp/ test_results.tab";83 "/tmp/Nagios_checks_test.tab"; 79 84 80 85 utils:::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 1 file name description -h protocol -u -b 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_html.py Discojuice HTML catalog.clarin.eu http '/mw1/sds/discojuice' 14 check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu http '/mw2/sds/discojuice' 15 check_clarin_discojuice_json.py Discojuice JSON catalog.clarin.eu http '/discojuice/metadata_clarin1.json' 16 check_clarin_discojuice_json.py Discojuice JSON 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 cn=Directory Manager
Note: See TracChangeset
for help on using the changeset viewer.