Hi All,
I used heartbeat 2.1.2 in Open SuSE 9.3. Before add WAS6 resource, I have
added drbd, db2 resources successfully. When I add WAS6 resource into
heartbeat, I received a "wget failure" error. I saw the WAS6 file in the
resource folder, I found it in the WAS_monitor function. I changed that line
to $OCF_SUCCESS, but it run on the other node different from the other
reources in the same group(WAS6 run on nodeb, other resources in the same
group run on nodea). I changed that line to $OCF_NOT_RUNNING, it run on both
nodes (nodea and nodeb). How can I solve this problem?

thanks


WAS_monitor() {
  tmpfile=`maketempfile`
  SnoopPort=`GetWASSnoopPort $1`
  output=`$WGET -nv -O$tmpfile  http://localhost:$SnoopPort/snoop 2>&1`
  rc=$?
  if
    [ $rc -eq 0 ]
  then
    if
      grep -i 'user-agent.*Wget' $tmpfile >/dev/null
    then
      : OK
    else
      ocf_log "err" "WAS: $1: no user-agent from snoop application"
      rc=$OCF_ERR_GENERIC
    fi
  else
    ocf_log "err" "WAS: $1: wget failure: $output"
    rc=$OCF_ERR_GENERIC
  fi
  rm -fr $tmpfile
  return $rc
}
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to