View previous topic :: View next topic |
Author |
Message |
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Wed Dec 17, 2008 1:46 am Post subject: interdependences on Clusters |
|
|
Hi,
i use 2 Servers combined in a Cluster.
ony one Service that exist on all Servers does running.
so if ServiceXY running on Server 1 so ServiceXY does not running on Server 2
i have create a service-test in HM for each Server and add dependencs to the Services
Server1 - ServiceXY dependes on Server2 - Service XY with "Dead" or "unknown"
and
Server2 - ServiceXY dependes on Server1 - Service XY with "Dead" or "unknown"
but the both service-tests display only "Wait for Master"
whats wrong? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Dec 17, 2008 5:51 am Post subject: |
|
|
As I can see, you made cross-reference between services. ServiceXY on Server 1 depends on ServiceXY on Server 2 and vice versa, right? Not sure it's a good idea. It appers to be endless loop. I think, you should take something more reliable as a master test. For instance - check active node. Are you able to distinguish what server is active node in a cluster?
Probably, folowing article might help: http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?t=3977
In this article you may find script to get active node.
Regards,
Max |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Wed Dec 17, 2008 6:38 am Post subject: |
|
|
Hi,
thanks for Info..
i modify the script sample to use it as shell script with param:
Params: Cluster-Server
Code: |
const statusAlive = "scriptRes:Host is alive:"
const statusDead = "scriptRes:No answer:"
const statusUnknown = "scriptRes:Unknown:"
const statusNotResolved = "scriptRes:Unknown host:"
const statusOk = "scriptRes:Ok:"
const statusBad = "scriptRes:Bad:"
const statusBadContents = "scriptRes:Bad contents:"
Dim strComputer,objArgs
Set objArgs = WScript.Arguments
strComputer = objArgs(0)
Dim objCluster
Dim strTestname
Set objCluster = CreateObject("MSCluster.Cluster")
objCluster.Open strComputer
strOwner = objCluster.ResourceGroups.Item("Cluster Group").OwnerNode.Name
Set objCluster = Nothing
WScript.StdOut.Write statusAlive & strOwner
|
|
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Dec 17, 2008 8:32 am Post subject: |
|
|
Heini_net wrote: | i modify the script sample to use it as shell script with param:
Params: Cluster-Server | Good job!
So, have you managed to make dependencies working?
Regards,
Max |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Wed Dec 17, 2008 8:48 am Post subject: |
|
|
yes, i have add a service-test on cluster instead of every server. so i know if this service is running |
|
Back to top |
|
|
|