Changeset 3258 for monitoring


Ignore:
Timestamp:
08/06/13 13:22:16 (11 years ago)
Author:
sanmai
Message:
  • Work on command line argument processing.
Location:
monitoring/plugins/mpi
Files:
2 edited

Legend:

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

    r3257 r3258  
    2525        print "[" + reporter + "] " + result['code'] + ": " + result['message']
    2626        return result['code']
    27    
     27
    2828    pdb.set_trace()
    29    
     29
    3030    # Scan all condition/status check results and create a list of appropriate exit codes.
    3131    exit_code_keys          = map(lambda result     : deal_with_result(result, reporter), results)
    3232    suggested_exit_codes    = list(map(lambda key   : nagios_codes[key], exit_code_keys))
    33    
     33
    3434    # Exit with the highest suggested exit code, because the higher the exit code the more problematic the status is and problems have priority over harmony.
    3535    sys.exit(max(suggested_exit_codes))
     
    305305
    306306    try :
    307         opts = filter(None, getopt.getopt(sys.argv[1:], command_line_parameters_getopt_string))[0]
     307        opts = filter(None, getopt.getopt(sys.argv[1:], command_line_parameters_getopt_string))
     308        if len(opts) > 0 : opts = opts[0]
    308309    except getopt.GetoptError, err :
    309310        usage(command_line_parameters_usage_string)
  • monitoring/plugins/mpi/plugins_hosts_services.tab

    r2363 r3258  
    1414check_clarin_discojuice_html.py Discojuice HTML catalog.clarin.eu       http
    1515check_lat_avatech_clam.py       AVATecH CLAM    lux17.mpi.nl    http
     16check_clarin_ldap.py    LDAP directory  user.clarin.eu  ldap
Note: See TracChangeset for help on using the changeset viewer.