source: monitoring/plugins/mpi/check_lat_lexus.py @ 3269

Last change on this file since 3269 was 3269, checked in by sanmai, 11 years ago
  • Adapt to new command line processing.
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/usr/bin/python2
2
3import generic_tla_monitoring
4import os, pdb
5
6
7special_plugin_description      = "Lexus"
8special_plugin_file_name        = os.path.basename(__file__)
9command_line_parameters = [("-h", "host",),
10                           ("-u", "URL",)]
11
12
13def special_main_subroutine(host, URL) :
14
15    UP_URLs          = (URL,) # X- use frozenset
16   
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)
24   
25    generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description)
26
27if __name__ == "__main__" :
28    generic_tla_monitoring.main(special_main_subroutine, 
29                                command_line_parameters)
30   
Note: See TracBrowser for help on using the repository browser.