Changeset 66
- Timestamp:
- 04/14/05 12:17:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugin/togap.py
r65 r66 70 70 return incompatible 71 71 72 def multicastGmetric( self, metricname, metricval, tmax='15' ):72 def multicastGmetric( self, metricname, metricval, valtype='string', tmax='15' ): 73 73 74 74 cmd = self.binary … … 79 79 debug_msg( 10, 'Assuming /etc/gmond.conf for gmetric cmd (ommitting)' ) 80 80 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 ) 82 82 83 83 print cmd … … 189 189 time_now = time.time() 190 190 191 self.dp.multicastGmetric( 'TOGA-HEARTBEAT', str( time_now ) )191 self.dp.multicastGmetric( 'TOGA-HEARTBEAT', str( time_now ), 'float' ) 192 192 193 193 # Now let's spread the knowledge
Note: See TracChangeset
for help on using the changeset viewer.