Ignore:
Timestamp:
09/12/13 15:37:28 (11 years ago)
Author:
sanmai
Message:
  • Add plugin for LAT PostgreSQL server.
  • Rework generic HTTP check to allow port number specification.
  • Some renaming/clarification.
File:
1 edited

Legend:

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

    r3269 r3555  
    55
    66
    7 special_plugin_description      = "Lexus"
    8 special_plugin_file_name        = os.path.basename(__file__)
     7special_plugin_description = "Lexus"
     8special_plugin_file_name = os.path.basename(__file__)
    99command_line_parameters = [("-h", "host",),
    10                            ("-u", "URL",)]
     10                           ("-u", "http_path",)]
    1111
    1212
    13 def special_main_subroutine(host, URL) :
     13def special_main_subroutine(host, http_path) :
    1414
    15     UP_URLs          = (URL,) # X- use frozenset
     15    http_paths = (http_path,) # X- use frozenset
    1616   
    17     # Check status for all UP_URLs.
    18     results          = map(lambda UP_URL : generic_tla_monitoring.check_condition(host          = host,
    19                                                                                   UP_URL        = UP_URL,
    20                                                                                   HTTP_method   = 'GET',
    21                                                                                   validator     = generic_tla_monitoring.check_HTML_wellformedness,
    22                                                                                   special_plugin_file_name = special_plugin_file_name),
    23                            UP_URLs)
     17    # Check status for all http_paths.
     18    results = \
     19        map(lambda http_path : generic_tla_monitoring.check_condition(host                     = host,
     20                                                                      http_path                = http_path,
     21                                                                      HTTP_method              = 'GET',
     22                                                                      port_number              = 80,
     23                                                                      authorize                = True,
     24                                                                      validator                = generic_tla_monitoring.check_HTML_wellformedness,
     25                                                                      special_plugin_file_name = special_plugin_file_name),
     26            http_paths)
    2427   
    25     generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description)
     28    generic_tla_monitoring.nagios_return_complex(results,
     29                                                 reporter = special_plugin_description)
    2630
    2731if __name__ == "__main__" :
Note: See TracChangeset for help on using the changeset viewer.