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

    r4047 r4057  
    77special_plugin_description = "LAT PostgreSQL database server"
    88special_plugin_file_name = os.path.basename(__file__)
    9 command_line_parameters = [("-h", "host",),
     9command_line_parameters = [("-s", "scheme"),
     10                           ("-h", "host",),
    1011                           ("-u", "http_path",),
    1112                           ("-p", "port_number")]
    1213
    1314
    14 def special_main_subroutine(host,
    15                             http_path,
     15def special_main_subroutine(scheme,
     16                            host,
     17                            http_path,
    1618                            port_number) :
    1719
     
    2224        map(lambda http_path : generic_tla_monitoring.check_condition(host                      = host,
    2325                                                                      http_path                 = http_path,
     26                                                                      protocol                  = scheme,
    2427                                                                      HTTP_method               = "GET",
    2528                                                                      port_number               = port_number,
Note: See TracChangeset for help on using the changeset viewer.