Ganglia plugin for AIX/Linux support

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
saiprakash 2008-11-07 13:59:27 +00:00
parent eae90d8576
commit 60f945388b

View File

@ -406,8 +406,9 @@ sub confGmond
{#opening if scope of confGmond
print "opening scope \n";
print "inside scope is:$scope";
chomp(my $hostname = `hostname`);
my $pPairHash=xCAT_monitoring::monitorctrl->getMonServer($noderef);
print "pairHash: $pPairHash \n";
#identification of this node
my @hostinfo=xCAT::Utils->determinehostname();
@ -457,8 +458,17 @@ sub confGmond
print "shell script time \n";
print "MONSERVER is $key_a[0] \n";
print "MONMASTER is $key_a[1] \n";
my $res_conf=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $node MONSERVER=$key_a[0] MONMASTER=$key_a[1] /tmp/confGang 2>&1`;
if($?)
my $res_conf;
if ( $key_a[0] =~ /noservicenode/ )
{
$res_conf=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $node MONSERVER=$hostname MONMASTER=$key_a[1] /tmp/confGang 2>&1`;
}
else
{
$res_conf=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $node MONSERVER=$key_a[0] MONMASTER=$key_a[1] /tmp/confGang 2>&1`;
}
if($?)
{ #openinf if ?
if($callback)
{