performace tuning for monitorctrl.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
fa64f6765e
commit
0cfb917de2
@ -848,6 +848,7 @@ sub getNodeMonServerPair {
|
||||
|
||||
my $table2=xCAT::Table->new("noderes", -create =>1);
|
||||
my $tabdata = $table2->getNodesAttribs(\@nodes,['monserver', 'servicenode', 'xcatmaster']);
|
||||
my $sitemaster=xCAT::Utils->get_site_attribute('master');
|
||||
foreach my $node (@nodes) {
|
||||
my $monserver;
|
||||
my $monmaster;
|
||||
@ -865,7 +866,7 @@ sub getNodeMonServerPair {
|
||||
if ($tmp2->{servicenode}) { $monserver=$tmp2->{servicenode}; }
|
||||
if ($tmp2->{xcatmaster}) { $monmaster=$tmp2->{xcatmaster}; }
|
||||
if (!$monserver) { $monserver="noservicenode"; }
|
||||
if (!$monmaster) { $monmaster=xCAT::Utils->get_site_attribute('master'); }
|
||||
if (!$monmaster) { $monmaster=$sitemaster; }
|
||||
$pairs="$monserver:$monmaster";
|
||||
}
|
||||
#print "node=$node, pairs=$pairs\n";
|
||||
|
Loading…
Reference in New Issue
Block a user