Ignore:
Timestamp:
11/19/13 16:11:03 (11 years ago)
Author:
sanmai
Message:
  • Make protocol/scheme (http, https) a command-line parameter and an internal

parameter. Fixes redirects from http URLs to https URLs and vice versa.

File:
1 edited

Legend:

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

    r4047 r4057  
    77special_plugin_file_name = os.path.basename(__file__)
    88
    9 command_line_parameters = [("-h", "host",),
     9command_line_parameters = [("-s", "scheme"),
     10                           ("-h", "host",),
    1011                           ("-u", "http_path",),
    1112                           ("-p", "port_number",)]
    1213
    13 def special_main_subroutine(host,
     14def special_main_subroutine(scheme,
     15                            host,
    1416                            http_path,
    1517                            port_number) :
     
    2123        map(lambda http_path : generic_tla_monitoring.check_condition(host                      = host,
    2224                                                                      http_path                 = http_path,
     25                                                                      protocol                  = scheme,
    2326                                                                      HTTP_method               = "GET",
    2427                                                                      port_number               = port_number,
Note: See TracChangeset for help on using the changeset viewer.