Changeset 66 for trunk/plugin


Ignore:
Timestamp:
04/14/05 12:17:48 (17 years ago)
Author:
bastiaans
Message:

plugin/togap.py:

  • tmax should be -x instead of -t
  • added type param
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugin/togap.py

    r65 r66  
    7070                return incompatible
    7171
    72         def multicastGmetric( self, metricname, metricval, tmax='15' ):
     72        def multicastGmetric( self, metricname, metricval, valtype='string', tmax='15' ):
    7373
    7474                cmd = self.binary
     
    7979                        debug_msg( 10, 'Assuming /etc/gmond.conf for gmetric cmd (ommitting)' )
    8080
    81                 cmd = cmd + ' -n' + metricname + ' -v"' + metricval + '" -t' + tmax + ' -d' + str( self.dmax )
     81                cmd = cmd + ' -n' + metricname + ' -v"' + metricval + '" -t' + valtype + ' -x' + tmax + ' -d' + str( self.dmax )
    8282
    8383                print cmd
     
    189189                time_now = time.time()
    190190
    191                 self.dp.multicastGmetric( 'TOGA-HEARTBEAT', str( time_now ) )
     191                self.dp.multicastGmetric( 'TOGA-HEARTBEAT', str( time_now ), 'float' )
    192192
    193193                # Now let's spread the knowledge
Note: See TracChangeset for help on using the changeset viewer.