Changeset 16


Ignore:
Timestamp:
03/22/05 17:09:08 (18 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

Storing and updating now working for ALL hosts and metrics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r15 r16  
    1616# >8  = RRD activity,gmetad config parsing
    1717#
    18 DEBUG_LEVEL = 9
     18DEBUG_LEVEL = 8
    1919
    2020# Where is the gmetad.conf located
     
    8080                        myMetric['val'] = attrs.get('VAL',"")
    8181                        myMetric['time'] = self.time
     82                        myMetric['type'] = attrs.get('TYPE',"")
    8283
    8384                        self.metrics.append( myMetric )
     
    101102
    102103                for metric in self.metrics:
    103                         self.rrd.createCheck( hostname, metric )       
    104                         self.rrd.update( hostname, metric )
    105                         debug_msg( 9, 'stored metric %s for %s: %s' %( hostname, metric['name'], metric['val'] ) )
    106                         sys.exit(1)
     104                        if metric['type'] not in [ 'string' ]:
     105
     106                                self.rrd.createCheck( hostname, metric )       
     107                                self.rrd.update( hostname, metric )
     108                                debug_msg( 9, 'stored metric %s for %s: %s' %( hostname, metric['name'], metric['val'] ) )
     109                                #sys.exit(1)
    107110       
    108111
Note: See TracChangeset for help on using the changeset viewer.