---
title: "Active / Passive monitoring"
description: "Active/Passive monitoring ensures a service runs on exactly one server in a cluster. A gateway rule with count() and Path Alias triggers alerts if the service is down or running on both servers."
url: "https://docs.itrsgroup.com/docs/faq/geneos/10263571983133-geneos-active-passive-monitoring/index.html"
---
## Related to

cluster, primary, secondary, resilience, high-availability, failover

### Possible solution

There can be many examples of what constitutes Active / Passive monitoring. Below is one example.

Consider that we have a service/process that runs on two servers in an Active/Passive scenario. In this scenario all that matters is that the process must be running on either one server or the other. If the process is not running on either server, then there should be a critical alert. Likewise, if the process is running on both servers, then there should also be a critical alert.

We have created a gateway rule which uses the count() function and Path Alias features to make sure the service count is exactly one. The rule in XML format has been attached for your reference.

**Critical scenarios**

Both services down on Active and Passive server

![Geneos - Active / Passive monitoring](https://docscdn.itrsgroup.com/faq/images/geneos/10263571983133-10266391614109-mceclip3.png)

Both services up on Active and Passive server

![Geneos - Active / Passive monitoring](https://docscdn.itrsgroup.com/faq/images/geneos/10263571983133-10266569788829-mceclip6.png)

**OK scenarios**

One service up on either Active or Passive server

![Geneos - Active / Passive monitoring](https://docscdn.itrsgroup.com/faq/images/geneos/10263571983133-10266438247197-mceclip4.png)

![Geneos - Active / Passive monitoring](https://docscdn.itrsgroup.com/faq/images/geneos/10263571983133-10266637675421-mceclip7.png)

## Related articles

- [Geneos - How to compare cells on the same row](https://docs.itrsgroup.com/docs/faq/geneos/360008132338-geneos-how-to-compare-cells-on-the-same-row/index.html)
- [Geneos - How do I compare two or more cells that are in different samplers?](https://docs.itrsgroup.com/docs/faq/geneos/115004030769-geneos-how-do-i-compare-two-or-more-cells-that-are-in-different-samplers/index.html)
- [Geneos - How do I reformat existing dataviews and group multiple rows of data together?](https://docs.itrsgroup.com/docs/faq/geneos/115004028389-geneos-how-do-i-reformat-existing-dataviews-and-group-multiple-rows-of-data-together/index.html)

## Related downloads

- [activepassiveservicerule.txt](/faq/downloads/geneos/10263571983133-10358518215325-activepassiveservicerule.txt)


