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

    r4047 r4057  
    77special_plugin_description = "Discojuice JSON"
    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
    13 
    14 def special_main_subroutine(host,
     14def special_main_subroutine(scheme,
     15                            host,
    1516                            http_path,
    16                             port_number) :
     17                            port_number) : 
    1718
    1819    http_paths = (http_path,)
Note: See TracChangeset for help on using the changeset viewer.