Ignore:
Timestamp:
08/06/13 14:16:15 (11 years ago)
Author:
sanmai
Message:
  • Adapt monitoring plugins to new command line argument processing.
  • Fix MPI monitoring checks table so that every check is on a separate line.
File:
1 edited

Legend:

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

    r3242 r3270  
    44import os, pdb
    55
     6
    67special_plugin_description = "Discojuice JSON"
    78special_plugin_file_name = os.path.basename(__file__)
     9command_line_parameters = [("-h", "host",),
     10                           ("-u", "URL",)]
    811
    912
    10 def special_main_subroutine(host) :
    11     UP_URLs = ("/discojuice/metadata_clarin1.json",
    12                "/discojuice/metadata_clarin2.json",)
     13def special_main_subroutine(host, URL) :
     14
     15    UP_URLs = (URL,)
    1316   
    1417    # Check status for all UP_URLs.
     
    2528
    2629if __name__ == "__main__" :
    27     generic_tla_monitoring.main(special_main_subroutine)
     30    generic_tla_monitoring.main(special_main_subroutine,
     31                                command_line_parameters)
Note: See TracChangeset for help on using the changeset viewer.