Error: "The URI is invalid or not supported"
An agent is in an error state and is not collecting data for one of its monitored resources.
The response to a REST API GET request on the agent URI looks like the following example:
{
"name": "com.arubanetworks.bgp_monitor1.0.Agent1",
"disabled":false,
"parameters_values":{
"threshold":"10"
}
"status": {
"error_at": "1490134092",
"error_description": "The URI is invalid or not supported",
"executed_at": "1490134092",
}
In the preceding example:
- error_at
Shows the time, in epoch format, at which the error occurred.
- executed_at
Shows the time, in epoch format, at which the agent was last executed (not the time at which the agent was created).
The agent attempted to access a URI that is not supported or does not exist at the time the agent executed the request.
-
Determine which URI is invalid or not supported:
-
If the resource URI is supported on this switch and operating system version, the most likely reason for the error is that the switch resource—such as a port—is not in an UP state. Do the following:
-
If the agent uses a resource ID as a parameter and only that resource ID is invalid (such as a port that does not exist), do the following:
- Delete the agent.
- Create and enable an agent that specifies a valid resource ID (such as port number).
-
If the resource URI is not supported on this switch and operating system version, modify the script to specify only URIs that are valid for this switch and operating system version.