bug fix for rmcmon

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2008-11-25 02:58:42 +00:00
parent c9ceae7dd4
commit a2fce3cb6a

View File

@ -124,7 +124,7 @@ sub start {
if ($tmp1[3] !~ /Not|not/) { #active
if ((!exists($assocHash{"$cond:_:$resp"})) || ($assocHash{"$cond:_:$resp"}==0)) {
$result=`/usr/bin/startcondresp $cond $resp 2>&1`;
if (($?) && ($result !~ /2618-244/)) { #started
if (($?) && ($result !~ /2618-244|2618-008/)) { #started
my $rsp={};
$rsp->{data}->[0]="$localhostname: $result";
$callback->($rsp);
@ -133,7 +133,7 @@ sub start {
} else { #inactive
if (!exists($assocHash{"$cond:_:$resp"})) {
$result=`/usr/bin/mkcondresp $cond $resp 2>&1`;
if (($?) && ($result !~ /2618-201/)) { #resource already defined
if (($?) && ($result !~ /2618-201|2618-008/)) { #resource already defined
my $rsp={};
$rsp->{data}->[0]="$localhostname: $result";
$callback->($rsp);
@ -605,7 +605,7 @@ sub startNodeStatusMon {
if (!$isSV) {
#start monitoring the status of mn's immediate children
my $result=`startcondresp NodeReachability UpdatexCATNodeStatus 2>&1`;
if (($?) && ($result !~ /2618-244/)) { #started
if (($?) && ($result !~ /2618-244|2618-008/)) { #started
$retcode=$?;
$retmsg="Error start node status monitoring: $result";
reportError($retmsg, $callback);
@ -613,7 +613,7 @@ sub startNodeStatusMon {
#start monitoring the status of mn's grandchildren via their service nodes
$result=`startcondresp NodeReachability_H UpdatexCATNodeStatus 2>&1`;
if (($?) && ($result !~ /2618-244/)) { #started
if (($?) && ($result !~ /2618-244|2618-008/)) { #started
$retcode=$?;
$retmsg="Error start node status monitoring: $result";
reportError($retmsg, $callback);