Changeset 930
- Timestamp:
- 07/31/13 16:33:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/jobarchived/jobarchived.py
r929 r930 932 932 """ 933 933 934 global ARCHIVE_DATASOURCES 935 934 936 jobinfo = { } 935 937 … … 1025 1027 debug_msg( 10, 'jobinfo for job %s has changed' %jobid ) 1026 1028 else: 1027 debug_msg( 1 , 'new job %s' %jobid )1029 debug_msg( 10, 'new job %s' %jobid ) 1028 1030 1029 1031 if not jobid in self.jobs_to_store: … … 1144 1146 """Find all existing clusters in archive dir""" 1145 1147 1148 global ARCHIVE_DATASOURCES 1149 1146 1150 archive_dir = check_dir(ARCHIVE_PATH) 1147 1151 … … 1173 1177 self.clusters[ clustername ] = RRDHandler( self.config, clustername ) 1174 1178 1175 debug_msg( 9, "Found "+str(len(self.clusters.keys()))+" clusters" ) 1179 debug_msg( 9, 'Found cluster dir: %s' %( clustername ) ) 1180 1181 debug_msg( 9, "Found "+str(len(self.clusters.keys()))+" cluster dirs" ) 1176 1182 1177 1183 def startElement( self, name, attrs ): 1178 1184 """Memorize appropriate data from xml start tags""" 1179 1185 1186 global ARCHIVE_DATASOURCES 1187 1180 1188 if name == 'GANGLIA_XML': 1181 1189 … … 1201 1209 self.clusters[ self.clusterName ] = RRDHandler( self.config, self.clusterName ) 1202 1210 1203 1211 debug_msg( 10, ' |-Cluster found: %s' %( self.clusterName ) ) 1204 1212 1205 1213 elif name == 'HOST' and self.clusterName in ARCHIVE_DATASOURCES: … … 1238 1246 self.clusters[ self.clusterName ].memMetric( self.hostName, myMetric ) 1239 1247 1248 debug_msg( 9, 'added metric %s from host %s to cluster %s' %( myMetric['name'], self.hostName, self.clusterName ) ) 1240 1249 debug_msg( 11, ' | | |-metric: %s:%s' %( myMetric['name'], myMetric['val'] ) ) 1241 1250 … … 1670 1679 """Class for handling RRD activity""" 1671 1680 1672 myMetrics = { }1673 lastStored = { }1674 timeserials = { }1675 slot = None1676 1681 1677 1682 def __init__( self, config, cluster ): … … 1684 1689 self.config = config 1685 1690 self.slot = threading.Lock() 1691 self.myMetrics = { } 1692 self.lastStored = { } 1693 self.timeserials = { } 1686 1694 1687 1695 if MODRRDTOOL:
Note: See TracChangeset
for help on using the changeset viewer.