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

Last change on this file since 3043 was 3043, checked in by sanmai, 11 years ago
  • Clean up monitoring scripts and synchronize them with the versions actually in use at MPI Nijmegen.
  • Property svn:executable set to *
File size: 1.1 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__)
9
10def special_main_subroutine(host) :
11
12    UP_URLs          = ('/mpi/lexusDojo/',) # X- use frozenset
13   
14    # Check status for all UP_URLs.
15    results          = map(lambda UP_URL : generic_tla_monitoring.check_condition(host          = host,
16                                                                                  UP_URL        = UP_URL,
17                                                                                  HTTP_method   = 'GET',
18                                                                                  validator     = generic_tla_monitoring.check_HTML_wellformedness,
19                                                                                  special_plugin_file_name = special_plugin_file_name),
20                           UP_URLs)
21   
22    generic_tla_monitoring.nagios_return_complex(results, reporter = special_plugin_description)
23
24if __name__ == "__main__" :
25    generic_tla_monitoring.main(special_main_subroutine)
26   
Note: See TracBrowser for help on using the repository browser.