This is a known issue affecting the vCenter Server Appliance 6.0.
To workaround this issue with the vCenter Server Appliance:
Note: Performing these disables the VMware Postgres Monitoring agent. When you click on this, it shows the status:
Failed to request health status from URI /etc/vmware-sca/health/vmware-postgres-health-status.xml
- Log in to the vCenter Server Appliance using SSH.
- Run this command to enable access the Bash shell:
shell.set --enabled true
- Type shell and press Enter.
- Run this command to disable the periodic health checks:
sed -ie 's/health_status_worker.naptime.*/health_status_worker.naptime = 2147483647/' /storage/db/vpostgres/health_status_worker.conf
- Run this command to reload the postgresql configuration::
service vmware-vpostgres reload
- Run this command to restart the health status worker process:
pkill -f "postgres: bgworker: health_status_worker"
- Run this command to reset the alarm from Unknown to Green:
sed -i -e 's#<status>.*</status>#<status>GREEN</status>#g' -e 's#<message.*message>#<message messageKey="cis.vpg.health.healthy" defaultMessage="VMware Postgres service is healthy."></message>#' -e "s#<expiration.*expiration>#<expiration>$(date +'%FT%T.000Z' -d '+2147483647 seconds')</expiration>#" /etc/vmware-sca/health/vmware-postgres-health-status.xml
To work around this issue with a Windows installed vCenter Server:
- Connect to the vCenter Server machine.
- Open the C:\ProgramData\VMware\vCenterServer\data\vpostgres\health_status_worker.conf file with a plain text editor.
- Search for the line health_status_worker.naptime = 60 in the file.
- Change the value to 2147483647.
For example:
health_status_worker.naptime = 2147483647
- Restart the vCenter Server and vPostgres services with these commands: