interdependences on Clusters

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

interdependences on Clusters

Post by MirkoW »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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/vi ... php?t=3977
In this article you may find script to get active node.

Regards,
Max
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

Hi,

thanks for Info..

i modify the script sample to use it as shell script with param:

Params: Cluster-Server

Code: Select all

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

yes, i have add a service-test on cluster instead of every server. so i know if this service is running
Post Reply