Ignore:
Timestamp:
11/19/13 11:13:07 (11 years ago)
Author:
sanmai
Message:
  • Make port_number specified as command line parameter. For simplicity, there is no

default value anymore, for now.

File:
1 edited

Legend:

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

    r3555 r4047  
    88special_plugin_file_name = os.path.basename(__file__)
    99command_line_parameters = [("-h", "host",),
    10                            ("-u", "http_path",)]
     10                           ("-u", "http_path",),
     11                           ("-p", "port_number",)]
    1112
    1213
    13 def special_main_subroutine(host, http_path) :
     14def special_main_subroutine(host,
     15                            http_path,
     16                            port_number) :
    1417
    1518    http_paths = (http_path,)
    1619   
    17     # Check status for all http_paths.
     20    ## Check status for all http_paths.
    1821    results = \
    1922        map(lambda http_path : generic_tla_monitoring.check_condition(host                      = host,
    2023                                                                      http_path                 = http_path,
    2124                                                                      HTTP_method               = "GET",
    22                                                                       port_number               = 80,
     25                                                                      port_number               = port_number,
    2326                                                                      authorize                 = True,
    2427                                                                      validator                 = generic_tla_monitoring.check_JSON_wellformedness,
Note: See TracChangeset for help on using the changeset viewer.