- Timestamp:
- 04/05/05 16:24:32 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/togad.py
r42 r43 23 23 # 7 = daemon threading 24 24 # 25 DEBUG_LEVEL = 925 DEBUG_LEVEL = 7 26 26 27 27 # Where is the gmetad.conf located … … 39 39 # Amount of hours to store in one single archived .rrd 40 40 # 41 ARCHIVE_HOURS_PER_RRD = 1 41 ARCHIVE_HOURS_PER_RRD = 12 42 42 43 43 # Wether or not to run as a daemon in background … … 348 348 # Store metrics somewhere between every 60 and 180 seconds 349 349 # 350 #STORE_INTERVAL = random.randint( 60, 180 )351 STORE_INTERVAL = 180350 STORE_INTERVAL = random.randint( 60, 180 ) 351 #STORE_INTERVAL = 30 352 352 353 353 storethread = threading.Thread( None, self.storeThread, 'storemetricthread' ) … … 393 393 394 394 debug_msg( 7, self.printTime() + ' - xmlthread(): parsethread() still running, waiting to finish..' ) 395 parsethread.join( 60 ) # Maximum time for XML thread to finish395 parsethread.join( 180 ) # Maximum time for XML thread to finish 396 396 debug_msg( 7, self.printTime() + ' - xmlthread(): Done waiting.' ) 397 397 … … 592 592 if self.checkStoreMetric( host, metricname, metric ): 593 593 update_list.append( '%s:%s' %( metric['time'], metric['val'] ) ) 594 else:595 print 'allready wrote metric %s with timestamp %s' %( metric['name'], metric['time'] )594 #else: 595 #print 'allready wrote metric %s with timestamp %s' %( metric['name'], metric['time'] ) 596 596 597 597 return update_list … … 603 603 if self.lastStored[ host ].has_key( metricname ): 604 604 605 if self.lastStored[ host ][ metricname ] <= metric['time']:605 if metric['time'] <= self.lastStored[ host ][ metricname ]: 606 606 607 607 # Allready wrote a value with this timestamp, skip tnx … … 631 631 else: 632 632 debug_msg( 9, 'metric update failed' ) 633 634 #sys.exit(1) 633 635 634 636 def makeTimeSerial( self ):
Note: See TracChangeset
for help on using the changeset viewer.