The document contains below information:
1. How to get the list of all the Offline Agents. #offlineagents
2. How to check the connectivity of Execution Servers.
3. How to check the connectivity of Management Server, also when NAC is configured for High Availability.
Hi Amit,
The API I shared and the one in document are something not exposed publicly they are something product uses internally, as all public API's are ideally containing */a/api/*
http://<Host Name>:<Port Number>/datamanagement/reporting/status/agent?block=OFFLINE_AGENTS&pageNumber=1&pageSize=200
I am aware there has been some improvement in CSRF implementation of the product recently, which protect some sort of session leak as I remember and it looks like due to it the internal API are no more accessible until you have a valid session and csrf token.
Regards,
Saurabh
Hi Saurabh,
Has this been changed recently? Because as per attached document, all these REST calls are functional and the document also has output screen dump attached in it.
Best regards,
Amit Joshi
I checked and it looks to me that with current implementation of CSRF doesn't let plain call to go through and you need to have a proper context to make this call happen.
These calls are working in context of the RA i.e. when ROC session i.e. within product but externally calling the same doesn't result in the output.
I think you should raise an idea on this to have this API been exposed.
It is RA 6.5
Hello Amit,
Can you please confirm your RA version so I can check at my end?
I am not getting any response when i try to check status of NES.
http://<Host Name>:<Port Number>/datamanagement/a/monitor/es
And when i run status check for NAC i do not get any of the server as "online". I get all the NAC as "offline" and i get "monitored": false for all the servers
Could you please help with both these above cases?
Hi Julio,
If interest is to just know the online agents, I will use the below REST call and will do simple calculation of TOTAL_AGENTS-OFFLINE_AGENTS
http://<NAC-IP>:<NAC-PORT>/datamanagement/reporting/status/overall?hours=1.
The response will be something like below which map to all fields on the dashboard.
"successful": true,
"value": {
"RUNNING_DEPLOYMENTS": "0",
"OFFLINE_AGENTS": "0",
"LONG_RUNNING_DEPLOYMENTS": "0",
"APPLICATIONS": "1",
"ERROR_STATE_DEPLOYMENTS": "0",
"TOTAL_AGENTS": "1",
"DEPLOYMENTS": "3",
"FAILED_DEPLOYMENTS": "0",
"WAITING_APPROVAL_DEPLOYMENTS": "0",
"WAITING_INPUT_DEPLOYMENTS": "0"
}
Hi, is there any way to obtain a list of online agents?
Thanks Sachin
Just one hint, I would suggest changing the title of the document, because I thought for a moment, it is a document for the complete REST-API and not just the monitoring. So maybe add "Monitoring" to the title (e.g. Monitoring with REST-API)
best regards
Michael