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_vlo.py

    r3555 r4047  
    88
    99command_line_parameters = [("-h", "host",),
    10                            ("-u", "http_path",)]
     10                           ("-u", "http_path",),
     11                           ("-p", "port_number",)]
    1112
    12 def special_main_subroutine(host, http_path) :
    13     #result = test_case(host);
    14     #result = check_condition(host)
    15     #generic_tla_monitoring.nagios_return(result['code'], result['message'])
     13def special_main_subroutine(host,
     14                            http_path,
     15                            port_number) :
    1616
    1717    http_path = (http_path,) # X- use frozenset
    1818   
    19     # Check status for all http_path.
     19    ## Check status for all http_paths.
    2020    results = \
    2121        map(lambda http_path : generic_tla_monitoring.check_condition(host                      = host,
    2222                                                                      http_path                 = http_path,
    2323                                                                      HTTP_method               = "GET",
    24                                                                       port_number               = 80,
     24                                                                      port_number               = port_number,
    2525                                                                      authorize                 = True,
    2626                                                                      validator                 = generic_tla_monitoring.check_HTML_wellformedness,
Note: See TracChangeset for help on using the changeset viewer.