IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 2:20:53 PM (14 years ago)
Author:
Serge CHASTEL
Message:

Enlarged nebulous view of the storage partitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czarpoll.pl

    r33814 r34249  
    3030
    3131my $config = new czartool::Config();
    32 my $czarDb = $config->getCzarDbInstance(); 
     32my $czarDb = $config->getCzarDbInstance();
    3333my $gpc1Db = $config->getGpc1Instance;
    3434my $nebulous = new czartool::Nebulous($czarDb);
    3535my $pantasks = new czartool::Pantasks();
    36 my $plotter = czartool::Plotter->new_file($config, $config->getGnuplotPath(), $save_temps); 
     36my $plotter = czartool::Plotter->new_file($config, $config->getGnuplotPath(), $save_temps);
    3737
    3838
    3939my @stages = (
    40         "chip", 
    41         "cam", 
    42         "fake", 
    43         "warp", 
    44         "stack", 
    45         "staticsky", 
    46         "diff", 
    47         "dist", 
     40        "chip",
     41        "cam",
     42        "fake",
     43        "warp",
     44        "stack",
     45        "staticsky",
     46        "diff",
     47        "dist",
    4848        "pub",
    4949        "chipbackground");
     
    6565###########################################################################
    6666#
    67 # Updates the dates from pantasks for all interested servers 
     67# Updates the dates from pantasks for all interested servers
    6868#
    6969###########################################################################
     
    7878
    7979        my @dates = @{$pantasks->getDates($server)};
    80         if (@dates) { 
     80        if (@dates) {
    8181
    8282            $czarDb->updateServerDates($server, \@dates);
     
    9191###########################################################################
    9292#
    93 # Updates the labels from pantasks for all interested servers 
     93# Updates the labels from pantasks for all interested servers
    9494#
    9595###########################################################################
     
    103103
    104104        my @labels = @{$pantasks->getLabels($server)};
    105         if (@labels) { 
     105        if (@labels) {
    106106
    107107            $czarDb->updateCurrentLabels($server, \@labels);
     
    116116###########################################################################
    117117#
    118 # Updates pantasks server status TODO should really get info for all servers at once 
     118# Updates pantasks server status TODO should really get info for all servers at once
    119119#
    120120###########################################################################
     
    136136###########################################################################
    137137#
    138 # Polls with provided period (seconds) 
     138# Polls with provided period (seconds)
    139139#
    140140###########################################################################
     
    184184                # create metrics for last 24 hours
    185185                print "* Creating metrics for last 24 hours\n";
    186                 my $dayMetrics = new czartool::DayMetrics($config, 1, 0, $today); 
     186                my $dayMetrics = new czartool::DayMetrics($config, 1, 0, $today);
    187187                $dayMetrics->writeHTML();
    188188
    189189                # now update metrics index page
    190                 my $metricsIndex = new czartool::MetricsIndex($config, 1, 0); 
     190                my $metricsIndex = new czartool::MetricsIndex($config, 1, 0);
    191191                $metricsIndex->writeHTML();
    192192
     
    210210        $plotter->plotStorageTimeSeries($czarDb->subtractInterval($begin, "1 WEEK") , $end);
    211211        $plotter->plotDiskUsageHistogram();
     212        $plotter->plotDiskUsageHistogramLarge();
    212213        updateServerStatus();
    213214
     
    269270    $czarDb->getCurrentIppToPspsLabels($begin, $end, \$ippToPspsLabels);
    270271    $plotter->setIppToPspsMode();
    271    
     272
    272273    # create ippToPsps labels
    273274    foreach $stage (@ippToPspsStages) {
    274275        foreach $row ( @{$ippToPspsLabels} ) {
    275276            my ($label) = @{$row};
    276            
     277
    277278            chomp($label);
    278279            $plotter->createTimeSeries($label, $stage, $begin, $end, 1, 0, 1);
Note: See TracChangeset for help on using the changeset viewer.