Failover is an alternative monitoring instance that is used to ensure your network remains monitored even when your primary monitoring setup goes down. OpManager helps in ensuring uninterrupted monitoring of your network by allowing you to configure a secondary monitoring instance on a separate server.
The primary server updates a value called heartbeat in the database. The heartbeat value is a counter that is incremented by the primary server at a specific frequency of time. The secondary server monitors the heartbeat value to check if it is being updated in the specified time interval. When the primary server goes down, it will not be able to update the heartbeat value in the database. If the heartbeat value in the database is not updated for the last 60 seconds, the primary server is considered to have gone down and the secondary monitoring instance takes over. This secondary server will continue monitoring the network as long as it is up. Meanwhile, if the primary server is up (recovered and restarted), it will take the standby mode and let the secondary server continue monitoring.
The information between the primary and secondary instances are synced periodically, thus ensuring that you don't miss critical monitoring data ( such as device status, traps, syslog messages etc., ) when your primary OpManager instance goes down.

When SQL Always ON is configured in OpManager setup along with Failover, the database layer is also covered under high availability. If the SQL Primary server goes down, OpManager will wait for a configured timeout duration before attempting to reconnect to the database. This timeout is defined during the SQL Always ON configuration.
During this wait period, OpManager will retry the database connection repeatedly, allowing time for the SQL Always ON failover transition to complete, where the secondary SQL server is promoted as the new primary.
Note: Ensure that the timeout value configured during SQL Always ON setup accounts for your SQL environment's typical failover transition time to avoid unnecessary application restarts. Refer Steps to Enable SQL Always ON for configuration details.
In your primary instance, go to Settings -> General Settings -> Failover Details and enter the following details:

Virtual hostname: A Virtual hostname is shared by both the primary and secondary servers. Only the active server responds to requests sent to the virtual hostname. This setup allows you to configure failover servers either on a single subnet or across two different subnets.

Note: Microsoft DNS Requirements
DNS User Permissions:
For virtual hostname-based failover with Microsoft DNS, ensure that the configured DNS user has Read, Write, Create Child Objects, and Delete Child Objects permissions on the DNS zone. These permissions are required for OpManager to verify the DNS record and create, update, or remove the record during failover and failback.RSAT Requirements:
Bind: The DNS Server type (Applicable for linux)

Note: When a failover uses a virtual hostname, issues may arise where the failover does not appear to work due to caching problems. The client DNS cache may take up to one minute to redirect traffic to the active server.
However, since browser DNS caches often do not respect the DNS Time to Live (TTL) value, the retention time can vary between browsers, ranging from 60 seconds to 24 hours. To ensure successful redirection to the new active server, it may be necessary to flush the browser's DNS cache.
None: In scenarios where neither Virtual IP nor Virtual hostname is preferred or required, users have the option to establish connections using individual IP addresses and hostnames of the Primary and Secondary servers.

However, consider the following if you are choosing the None option:
Shared folder path:The path to the empty shared folder created in a separate server.
Save the details and perform the following steps in the primary and secondary servers:
In the primary server:

In the secondary server:
In the primary server:

In the secondary server:
Note:
While upgrading your OpManager service, it is enough to apply the PPM for the primary setup. The secondary server will be updated automatically. Learn more about the prerequisites for failover server upgrade.
In Virtual IP Based Failover, the configuration files in primary and secondary setup will be synced periodically. From version 127189, Encrypted File transfer between Primary and Secondary server will be supported. Please contact our support team to enable it.
To configure failover for Enterprise Edition, please follow the steps given above. Note that these configuration steps must be performed on both the Central server and the Probe server.