Ignore:
Timestamp:
09/12/13 15:37:28 (11 years ago)
Author:
sanmai
Message:
  • Add plugin for LAT PostgreSQL server.
  • Rework generic HTTP check to allow port number specification.
  • Some renaming/clarification.
File:
1 edited

Legend:

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

    r3267 r3555  
    88
    99command_line_parameters = [("-h", "host",),
    10                            ("-u", "URL",)]
     10                           ("-u", "http_path",)]
    1111
    12 def special_main_subroutine(host, URL) :
     12def special_main_subroutine(host, http_path) :
    1313    #result = test_case(host);
    1414    #result = check_condition(host)
    1515    #generic_tla_monitoring.nagios_return(result['code'], result['message'])
    1616
    17     UP_URLs = (URL,) # X- use frozenset
     17    http_path = (http_path,) # X- use frozenset
    1818   
    19     # Check status for all UP_URLs.
     19    # Check status for all http_path.
    2020    results = \
    21         map(lambda UP_URL : generic_tla_monitoring.check_condition(host                      = host,
    22                                                                    UP_URL                    = UP_URL,
    23                                                                    HTTP_method               = "GET",
    24                                                                    validator                 = generic_tla_monitoring.check_HTML_wellformedness,
    25                                                                    special_plugin_file_name  = special_plugin_file_name),
    26             UP_URLs)
     21        map(lambda http_path : generic_tla_monitoring.check_condition(host                      = host,
     22                                                                      http_path                 = http_path,
     23                                                                      HTTP_method               = "GET",
     24                                                                      port_number               = 80,
     25                                                                      authorize                 = True,
     26                                                                      validator                 = generic_tla_monitoring.check_HTML_wellformedness,
     27                                                                      special_plugin_file_name  = special_plugin_file_name),
     28            http_path)
    2729   
    2830    generic_tla_monitoring.nagios_return_complex(results,
Note: See TracChangeset for help on using the changeset viewer.