Changeset 457
- Timestamp:
- 01/11/07 16:46:08 (6 years ago)
- Location:
- util
- Files:
-
- 2 modified
-
server_daily_maint (modified) (4 diffs)
-
server_daily_maint_component.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
util/server_daily_maint
r420 r457 365 365 366 366 my $g = "c_".$c."_success"; 367 $store->{per_hour}->[$hr_num]->{$g."_counter"}++; 367 $store->{per_hour}->[$hr_num]->{'c_'.$c.'_runs'}++; 368 $store->{total}->{'c_'.$c.'_runs'}++; 368 369 $store->{per_hour}->[$hr_num]->{$g."_sysid_list"}->{$sid}++ if ($sid); 369 $store->{total}->{$g."_counter"}++;370 370 371 371 # duration (total count, min, max, average from duration/counter) … … 380 380 381 381 my $g = "c_".$c."_fail"; 382 $store->{per_hour}->[$hr_num]->{$g."_counter"}++; 382 $store->{per_hour}->[$hr_num]->{'c_'.$c.'_runs'}++; 383 $store->{total}->{'c_'.$c.'_runs'}++; 383 384 $store->{per_hour}->[$hr_num]->{$g."_sysid_list"}->{$sid}++ if ($sid); 384 $store->{total}->{$g."_counter"}++;385 385 386 386 # duration (total count, min, max, average from duration/counter) … … 1000 1000 my %clist; 1001 1001 foreach my $c (sort keys %{($store->{total})}) { 1002 if (($c =~ /^c_(.*)_success_counter$/) || 1003 ($c =~ /^c_(.*)_fail_counter$/)) { 1002 if ($c =~ /^c_(.*)_runs$/) { 1004 1003 # skip if any '/' or '`' chars in name 1005 1004 next if (($1 =~ /\//) || ($1 =~ /`/)); … … 1052 1051 $template->param('NAME', $c); 1053 1052 1054 &report_count_data($template, 'COMPONENT_SUCCESS_RUNS', "c_".$c."_success_counter", "all"); 1055 &report_count_data($template, 'COMPONENT_FAIL_RUNS', "c_".$c."_fail_counter", "brief"); 1056 &graph_count_data($template, 'GRAPHS_OVERALL', "day week 12week year", 0, "c_".$c."_success_counter", "c_".$c."_fail_counter"); 1053 &report_count_data($template, 'SUCCESS', 'c_'.$c.'_success_sysid_list', 'all'); 1054 &report_count_data($template, 'MISSING', 'c_'.$c.'_missing_sysid_list', 'all'); 1055 &report_count_data($template, 'FAILURE', 'c_'.$c.'_fail_sysid_list', 'all'); 1056 &graph_count_data($template, 'GRAPHS_USAGE', 'day week 12week year', 0, 'c_'.$c.'_success_sysid_list', 'c_'.$c.'_missing_sysid_list', 'c_'.$c.'_fail_sysid_list'); 1057 1058 &report_count_data($template, 'RUNS_SEEN', 'c_'.$c.'_runs', "all"); 1059 &graph_count_data($template, 'GRAPHS_RUNS', "day week 12week year", 0, 'c_'.$c.'_runs'); 1057 1060 1058 1061 my @sf; -
util/server_daily_maint_component.tmpl
r375 r457 9 9 10 10 <tr><td align=left valign=top nowrap> 11 <h2>Success/Failure</h2> 12 <i>(# of times called and return status)</i><br> 13 <b>Successful runs:</b> <font color=lightgreen><i>(green)</i></font><br> 14 <TMPL_LOOP NAME=COMPONENT_SUCCESS_RUNS> 15 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 16 </TMPL_LOOP> 17 <li><b>TOTAL SEEN: <u><TMPL_VAR NAME=COMPONENT_SUCCESS_RUNS_TOTAL></u></b></li> 18 <br><b>Failed runs:</b> <font color=lightblue><i>(blue)</i></font><br> 19 <TMPL_LOOP NAME=COMPONENT_FAIL_RUNS> 11 <h2>Overview</h2> 12 <p>by unique systems</p> 13 <b><font color="lightgreen">Successes</font></b> 14 <TMPL_LOOP NAME=SUCCESS> 20 15 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 21 16 </TMPL_LOOP> 22 <li><b>TOTAL SEEN: <u><TMPL_VAR NAME=COMPONENT_FAIL_RUNS_TOTAL></u></b></li></td> 17 <!-- <b>TOTAL: <u><TMPL_VAR NAME=SUCCESS_TOTAL></u></b><br> --> 18 <br><b><font color="pink">Failures</font></b> 19 <TMPL_LOOP NAME=FAILURE> 20 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 21 </TMPL_LOOP> 22 <!-- <b>TOTAL: <u><TMPL_VAR NAME=FAILURE_TOTAL></u></b> --> 23 <br><b><font color="lightblue">Missing Data</font></b> 24 <TMPL_LOOP NAME=MISSING> 25 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 26 </TMPL_LOOP> 27 <!-- <b>TOTAL: <u><TMPL_VAR NAME=MISSING_TOTAL></u></b> --> 28 </td><td nowrap><br> 29 <TMPL_LOOP NAME=GRAPHS_USAGE> 30 <TMPL_VAR NAME=GRAPH> 31 </TMPL_LOOP> 32 <TMPL_LOOP NAME=GRAPHS_MISSING> 33 <br><TMPL_VAR NAME=GRAPH> 34 </TMPL_LOOP> 35 </td></tr> 23 36 37 <tr><td align=left valign=top nowrap> 38 <h2>Runs</h2> 39 <p># of times <TMPL_VAR NAME=NAME> ran</p> 40 <TMPL_LOOP NAME=RUNS_SEEN> 41 <li>in last <TMPL_VAR NAME=TIMESLICE>:<b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 42 </TMPL_LOOP> 43 <b>TOTAL: <u><TMPL_VAR NAME=RUNS_SEEN_TOTAL></u></b> 24 44 </td><td nowrap><br> 25 26 <TMPL_LOOP NAME=GRAPHS_OVERALL> 45 <TMPL_LOOP NAME=GRAPHS_RUNS> 27 46 <TMPL_VAR NAME=GRAPH> 28 47 </TMPL_LOOP>
