Changeset 34249 for trunk/ippMonitor/czartool/czarpoll.pl
- Timestamp:
- Jul 31, 2012, 2:20:53 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/czartool/czarpoll.pl (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/czarpoll.pl
r33814 r34249 30 30 31 31 my $config = new czartool::Config(); 32 my $czarDb = $config->getCzarDbInstance(); 32 my $czarDb = $config->getCzarDbInstance(); 33 33 my $gpc1Db = $config->getGpc1Instance; 34 34 my $nebulous = new czartool::Nebulous($czarDb); 35 35 my $pantasks = new czartool::Pantasks(); 36 my $plotter = czartool::Plotter->new_file($config, $config->getGnuplotPath(), $save_temps); 36 my $plotter = czartool::Plotter->new_file($config, $config->getGnuplotPath(), $save_temps); 37 37 38 38 39 39 my @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", 48 48 "pub", 49 49 "chipbackground"); … … 65 65 ########################################################################### 66 66 # 67 # Updates the dates from pantasks for all interested servers 67 # Updates the dates from pantasks for all interested servers 68 68 # 69 69 ########################################################################### … … 78 78 79 79 my @dates = @{$pantasks->getDates($server)}; 80 if (@dates) { 80 if (@dates) { 81 81 82 82 $czarDb->updateServerDates($server, \@dates); … … 91 91 ########################################################################### 92 92 # 93 # Updates the labels from pantasks for all interested servers 93 # Updates the labels from pantasks for all interested servers 94 94 # 95 95 ########################################################################### … … 103 103 104 104 my @labels = @{$pantasks->getLabels($server)}; 105 if (@labels) { 105 if (@labels) { 106 106 107 107 $czarDb->updateCurrentLabels($server, \@labels); … … 116 116 ########################################################################### 117 117 # 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 119 119 # 120 120 ########################################################################### … … 136 136 ########################################################################### 137 137 # 138 # Polls with provided period (seconds) 138 # Polls with provided period (seconds) 139 139 # 140 140 ########################################################################### … … 184 184 # create metrics for last 24 hours 185 185 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); 187 187 $dayMetrics->writeHTML(); 188 188 189 189 # now update metrics index page 190 my $metricsIndex = new czartool::MetricsIndex($config, 1, 0); 190 my $metricsIndex = new czartool::MetricsIndex($config, 1, 0); 191 191 $metricsIndex->writeHTML(); 192 192 … … 210 210 $plotter->plotStorageTimeSeries($czarDb->subtractInterval($begin, "1 WEEK") , $end); 211 211 $plotter->plotDiskUsageHistogram(); 212 $plotter->plotDiskUsageHistogramLarge(); 212 213 updateServerStatus(); 213 214 … … 269 270 $czarDb->getCurrentIppToPspsLabels($begin, $end, \$ippToPspsLabels); 270 271 $plotter->setIppToPspsMode(); 271 272 272 273 # create ippToPsps labels 273 274 foreach $stage (@ippToPspsStages) { 274 275 foreach $row ( @{$ippToPspsLabels} ) { 275 276 my ($label) = @{$row}; 276 277 277 278 chomp($label); 278 279 $plotter->createTimeSeries($label, $stage, $begin, $end, 1, 0, 1);
Note:
See TracChangeset
for help on using the changeset viewer.
