I am trying to write an automated script to stop all the nodes and start the nodes and at the end of my script, i am trying to get the status of the node from opscenter API. But its not updating properly when we stop the DB and I am waiting for 90sec then stopping the opscenter agent still the opscenter agent is not able to send the DB status as down. is there any way we can poll the opscenter to send the DB status to opscenter before stopping the agent.
we are not using poll_period in our address.yaml. so we might be using default value.
I am using below curl to retrieve the DB status.
curl -s -H 'opscenter-session: session_id}' 'http://{opscenter_host}:8090/{cluster_name}/nodes'
Thanks
Ratna Kumar