Database monitor unhealthy

I have a alwayson cluster setup on a testserver.
Although the database is fine I get the following in scom? Any idea on why?

MSSQL on Windows: Database is in offline/recovery pending/suspect/emergency state

MonitoringStatus
Bad

DatabaseState
ONLINE

IsAccessible
false

IsMirroringMirror
false

IsAlwaysOnReplica
true

ErrorCode
0

ErrorDescription

Solved it by granting connect to right to the monitoring account to the hadr_endpoint.