How to create a rule for the services running in the primary and secondary servers

How to create a rule for the services running in the primary and secondary servers
I’m trying to create rule for the services running in primary or in the secondary servers.
The services must run in any of the servers and alert critical if not running.
I’ve created 2 rules using path aliases for primary and secondary servers.
The issue here is path aliases cannot have wild cards, so I’ve to create 50 rules for 25 services running on the primary and secondary services.
Is there a simple way to setup rules for the primary secondary applications

if value = “Stopped” and path “Secondary” value = “Stopped” then
severity critical
else
severity ok
endif

Arun,

A path alias can use a path variable, that expresses targets from the path the rule is running on, for example the rowname - which could be the server name. You then use it as “$var” in the path alias edit fields - no parenthesis as a normal variable.

How are the servers organised? In one dataview?

Also, I would suggest putting a “delay” statement in the rule above the “severity critical” of, say, “2 samples” to allow any failover to complete and the status to reflect a stable state.

Thanks @pgalbavy
This issue is resolved as I’ve added the column cell in the path aliases and compared the values between the sampler path values and path alias values

1 Like