Last change
on this file since 3385 was
3385,
checked in by sanmai, 11 years ago
|
- Clean up XML namespace handling.
- Fix check_lat_handle.py to use XML validation on the data, as it is IMDI not HTML.
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/usr/bin/python2 |
---|
2 | |
---|
3 | import generic_tla_monitoring |
---|
4 | import os, pdb |
---|
5 | |
---|
6 | |
---|
7 | special_plugin_description = "AVATecH CLAM" |
---|
8 | special_plugin_file_name = os.path.basename(__file__) |
---|
9 | command_line_parameters = [("-h", "host",), |
---|
10 | ("-u", "URL",)] |
---|
11 | valid_root_element_tag = "clam" |
---|
12 | |
---|
13 | def special_main_subroutine(host, URL) : |
---|
14 | |
---|
15 | UP_URLs = (URL,) # X- use frozenset |
---|
16 | |
---|
17 | # Check status for all UP_URLs. |
---|
18 | results = \ |
---|
19 | map(lambda UP_URL : generic_tla_monitoring.check_condition(host = host, |
---|
20 | UP_URL = UP_URL, |
---|
21 | HTTP_method = "GET", |
---|
22 | validator = generic_tla_monitoring.check_XML_validity, |
---|
23 | valid_root_element_tag = valid_root_element_tag, |
---|
24 | special_plugin_file_name = special_plugin_file_name), |
---|
25 | UP_URLs) |
---|
26 | |
---|
27 | generic_tla_monitoring.nagios_return_complex(results, |
---|
28 | reporter = special_plugin_description) |
---|
29 | |
---|
30 | if __name__ == "__main__" : |
---|
31 | generic_tla_monitoring.main(special_main_subroutine, |
---|
32 | command_line_parameters) |
---|
Note: See
TracBrowser
for help on using the repository browser.