The alert "Postgres data replication is not working" was triggered after upgrading Aria Operations.
To check if the alert is a false positive, run the following commands:
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c 'select * from pg_stat_replication;'"su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c 'select * from pg_stat_wal_receiver;'"
If there is no entry in the tables, the alert is valid.
Aria Operations 8.x
If the alert is false positive, please cancel and delete the alert. The alert should not return if it is a false positive.
If the alert is positive, meaning the replication row is equal to zero. Please fully reboot the Aria Operations as per the following steps.
How to fully reboot Aria Operations:
https://vrops_fqdn/admin) with local admin