Changeset 41302 for trunk/ippMonitor
- Timestamp:
- Mar 2, 2020, 2:04:01 PM (6 years ago)
- Location:
- trunk/ippMonitor/czartool
- Files:
-
- 3 edited
-
czarconfig.xml.in (modified) (1 diff)
-
czarpoll.pl (modified) (2 diffs)
-
czartool/Config.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/czarconfig.xml.in
r40840 r41302 17 17 <savelocation>PATH/TO/ippMetrics</savelocation> 18 18 <starttime>18:00</starttime> 19 <backupversion>0</backupversion> 19 20 </metrics> 20 21 -
trunk/ippMonitor/czartool/czarpoll.pl
r41126 r41302 292 292 my $yesterday = undef; 293 293 my $newDayTime = $config->getMetricsStartTime(); 294 my $metricsbackupversion = $config->getMetricsBackupVersion(); 294 295 my $lastDayDailyTasks = "2010-01-01"; 295 296 my $checkneb = 1; # 1 for nebulous, 0 for localhost test … … 346 347 347 348 # now cleanup tables from yesterday and optimize 348 # TdB20190703: The ipp113 and ipp117 instances of czarpoll use the same stage DBs in czarDB.349 # Therefore, it makes no sense to run the cleanup+optimising twice349 # TdB20190703: The ipp113 and ipp117 instances of czarpoll use the same stage DBs in czarDB. 350 # Therefore, ensure DB optimising happens only in the regular version. 350 351 print "* Performing database cleanup\n"; 351 352 $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval()); 352 #print "* Optimizing the database\n"; 353 #$czarDb->optimize(); 353 if($metricsbackupversion == 0) { 354 print "* Optimizing the database\n"; 355 $czarDb->optimize(); 356 } 354 357 $lastDayDailyTasks = $yesterday; 355 358 } -
trunk/ippMonitor/czartool/czartool/Config.pm
r40090 r41302 51 51 $self->{metricssavelocation} = $xc->findvalue('//metrics/savelocation'); 52 52 $self->{metricsstarttime} = $xc->findvalue('//metrics/starttime'); 53 $self->{metricsbackupversion} = $xc->findvalue('//metrics/backupversion'); 53 54 54 55 # gpc1 db … … 247 248 ########################################################################### 248 249 # 250 # Returns flag setting backup version of czartool 251 # 252 ########################################################################### 253 sub getMetricsBackupVersion { 254 my ($self) = @_; 255 return $self->{metricsbackupversion}; 256 } 257 258 ########################################################################### 259 # 249 260 # Returns name for gpc1 Db 250 261 #
Note:
See TracChangeset
for help on using the changeset viewer.
