Changeset 41023
- Timestamp:
- Nov 3, 2019, 4:52:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ccl_branches/ipp-20190806/ippMonitor/czartool/czarpoll.pl
r41022 r41023 272 272 my $newDayTime = $config->getMetricsStartTime(); 273 273 my $lastDayDailyTasks = "2010-01-01"; 274 my $checkneb = 0; # 1 for nebulous, 0 for localhost 274 275 275 276 # main polling loop … … 287 288 if($timediff > 120.) { 288 289 print "There is no recent Czarpoll iteration\n"; 289 print "* Updating database entries*\n";290 print "* Updating database entries*\n"; 290 291 $dbupdate = 1; 291 292 } else { 292 293 print "There is a recent Czarpoll iteration already made ($timediff sec ago)\n"; 293 print "* Skipping database queries and entries*\n";294 print "* Skipping database queries and entries*\n"; 294 295 $dbupdate = 0; 295 296 } … … 328 329 print "* Performing database cleanup\n"; 329 330 $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval()); 330 #print "* Optimizing the database\n";331 #$czarDb->optimize();331 print "* Optimizing the database\n"; 332 $czarDb->optimize(); 332 333 $lastDayDailyTasks = $yesterday; 333 334 } … … 344 345 345 346 # check nebulous 346 print "* Checking Nebulous\n"; 347 if($dbupdate == 1) {$nebulous->updateClusterSpaceInfo();} 348 $plotter0->plotStorageTimeSeries($czarDb->subtractInterval($begin, "1 WEEK") , $end); 349 $plotter0->plotDiskUsageHistogram(); 350 $plotter0->plotDiskUsageHistogramLarge(); 351 if($dbupdate == 1) {updateServerStatus();} 347 if($checkneb == 1){ 348 print "* Checking Nebulous\n"; 349 if($dbupdate == 1) {$nebulous->updateClusterSpaceInfo();} 350 $plotter0->plotStorageTimeSeries($czarDb->subtractInterval($begin, "1 WEEK") , $end); 351 $plotter0->plotDiskUsageHistogram(); 352 $plotter0->plotDiskUsageHistogramLarge(); 353 if($dbupdate == 1) {updateServerStatus();} 354 } 355 else {print "* Locahost, so no checking nebulous\n";} 352 356 353 357 # check pantasks dates
Note:
See TracChangeset
for help on using the changeset viewer.
