Last change
on this file was
4059,
checked in by sanmai, 11 years ago
|
- Fix function calls in these plugins to also use the extra parameter 'scheme'.
|
-
Property svn:executable set to
*
|
File size:
1.8 KB
|
Line | |
---|
1 | #!/usr/bin/python2 |
---|
2 | |
---|
3 | import generic_tla_monitoring |
---|
4 | import os, pdb |
---|
5 | |
---|
6 | |
---|
7 | special_plugin_description = "Component Registry" |
---|
8 | special_plugin_file_name = os.path.basename(__file__) |
---|
9 | |
---|
10 | command_line_parameters = [("-s", "scheme"), |
---|
11 | ("-h", "host",), |
---|
12 | ("-u", "http_path",), |
---|
13 | ("-p", "port",)] |
---|
14 | |
---|
15 | |
---|
16 | def special_main_subroutine(scheme, |
---|
17 | host, |
---|
18 | http_path, |
---|
19 | port_number) : |
---|
20 | |
---|
21 | http_paths = (http_path,) # X- use frozenset |
---|
22 | |
---|
23 | ## Check status for all http_paths. |
---|
24 | results = \ |
---|
25 | map(lambda http_path : generic_tla_monitoring.check_condition(host = host, |
---|
26 | http_path = http_path, |
---|
27 | protocol = scheme, |
---|
28 | HTTP_method = "GET", |
---|
29 | port_number = port_number, |
---|
30 | authorize = True, |
---|
31 | validator = generic_tla_monitoring.check_HTML_wellformedness, |
---|
32 | special_plugin_file_name = special_plugin_file_name), |
---|
33 | http_paths) |
---|
34 | |
---|
35 | generic_tla_monitoring.nagios_return_complex(results, |
---|
36 | reporter = special_plugin_description) |
---|
37 | |
---|
38 | if __name__ == "__main__" : |
---|
39 | generic_tla_monitoring.main(special_main_subroutine, |
---|
40 | command_line_parameters) |
---|
Note: See
TracBrowser
for help on using the repository browser.