Changeset 698


Ignore:
Timestamp:
03/21/13 16:01:44 (9 years ago)
Author:
ramonb
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/parse_ganglia.py

    r697 r698  
    293293        return self.getSectionLastOption( 'cluster', 'name' )
    294294
     295    def getVal( self, section, option ):
     296
     297        return self.getSectionLastOption( section, option )
     298
     299    def getInt( self, section, valname ):
     300
     301        value    = self.getVal( section, valname )
     302
     303        if not value:
     304            return None
     305
     306        return int( value )
     307
     308    def getStr( self, section, valname ):
     309
     310        value    = self.getVal( section, valname )
     311
     312        if not value:
     313            return None
     314
     315        return str( value )
     316
    295317GMOND_LOCATION = '/etc/ganglia/gmond.conf'
    296318
Note: See TracChangeset for help on using the changeset viewer.