IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41023


Ignore:
Timestamp:
Nov 3, 2019, 4:52:24 PM (7 years ago)
Author:
cclin33
Message:

add locahost so no checking nebulous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ccl_branches/ipp-20190806/ippMonitor/czartool/czarpoll.pl

    r41022 r41023  
    272272    my $newDayTime = $config->getMetricsStartTime();
    273273    my $lastDayDailyTasks = "2010-01-01";
     274    my $checkneb = 0; # 1 for nebulous, 0 for localhost
    274275
    275276    # main polling loop
     
    287288        if($timediff > 120.) {
    288289            print "There is no recent Czarpoll iteration\n";
    289             print "*Updating database entries*\n";
     290            print "* Updating database entries*\n";
    290291            $dbupdate = 1;
    291292        } else {
    292293            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";
    294295            $dbupdate = 0;
    295296        }
     
    328329                print "* Performing database cleanup\n";
    329330                $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval());
    330                 #print "* Optimizing the database\n";
    331                 #$czarDb->optimize();
     331                print "* Optimizing the database\n";
     332                $czarDb->optimize();
    332333                $lastDayDailyTasks = $yesterday;
    333334            }
     
    344345
    345346        # 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";}
    352356
    353357        # check pantasks dates
Note: See TracChangeset for help on using the changeset viewer.