Changeset 657 for branches/0.3


Ignore:
Timestamp:
02/21/11 11:01:24 (13 years ago)
Author:
ramonb
Message:

jobmond/jobmond.py:

  • detect ganglia 3.1 and fall back to gmetric binary
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.3/jobmond/jobmond.py

    r656 r657  
    391391                """Remember alternate binary location if supplied"""
    392392
    393                 global GMETRIC_BINARY
     393                global GMETRIC_BINARY, GMOND_CONF
    394394
    395395                if binary:
     
    424424                """
    425425
    426                 global METRIC_MAX_VAL_LEN
     426                global METRIC_MAX_VAL_LEN, GMETRIC_TARGET
    427427
    428428                incompatible    = 0
     
    468468
    469469                                                        METRIC_MAX_VAL_LEN = 1400
     470
     471                                        elif version_minor == 1:
     472
     473                                                debug_msg( 0, 'Gmetric 3.1 detected, internal gmetric handling disabled. Failing back to gmetric binary' )
     474
     475                                                METRIC_MAX_VAL_LEN = 1400
     476
     477                                                # We don't speak 3.1 gmetric so use binary
     478                                                #
     479                                                GMETRIC_TARGET = None
    470480
    471481                return incompatible
Note: See TracChangeset for help on using the changeset viewer.