Changeset 40092 for trunk/ippMonitor
- Timestamp:
- Jul 11, 2017, 12:54:40 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/czartool/czarpoll.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/czarpoll.pl
r40089 r40092 121 121 sub updateLabels { 122 122 123 # this used to have a concept of labels grouped by pantasks server, but we 124 # don't really care about that. Just get the labels from the pantasks listed below, 125 # and update them all into the 'stdscience' block: 126 123 127 print "* Updating labels\n"; 124 128 # my @servers = ("stdscience", "distribution", "publishing", "update"); 125 my @servers = ("stdscience", "stdscience_ws", "distribution"); 129 my @servers = ("stdscience", "distribution"); 130 131 my @allLabels = (); 126 132 127 133 my $server = undef; 128 134 foreach $server (@servers) { 129 130 135 my @labels = @{$pantasks->getLabels($server)}; 131 if (@labels) { 132 133 $czarDb->updateCurrentLabels($server, \@labels); 134 } 135 else { 136 137 print "WARNING: No labels to update for '$server'\n"; 138 } 136 push (@allLabels, @labels); 137 } 138 139 # store them all in stdscience: 140 $server = "stdscience"; 141 if (@allLabels) { 142 $czarDb->updateCurrentLabels($server, \@allLabels); 143 } else { 144 print "WARNING: No labels to update for '$server'\n"; 139 145 } 140 146 }
Note:
See TracChangeset
for help on using the changeset viewer.
