Monitor
The Monitor menu allows you to view the Access Gateway logs, and configure and manage the monitoring API.
Select 4 to open the Monitoring submenu.
Monitor commands
- Monitor logs: Display the monitor log.
- Enable debug: Enable debug for all services.
- Disable debug: Disable debug for all services.
- Show Memory statistics: Display current memory use statistics.
- Monitoring REST API: Manage the monitoring REST API.
- Exit: Exit the monitor submenu.
Enabling debug on a running Access Gateway system elevates the logging level from INFO to DEBUG and causes a considerable rise in the number of log messages generated.
Only enable debug monitoring when debugging applications and services. Failing to disable debug monitoring can cause out of disk errors and system degradation. Always return the debug state to disabled (INFO) after diagnosing system or application errors.
Monitor logs
- Select 1 to display monitoring messages.
-
Enter Ctrl + c to exit Monitor Logs.
Enable debug
Select 2 to enable debug.
Disable debug
Select 3 to disable debug.
Show Memory statistics
Select 4 to display current memory statistics including total, used, free, shared, cache in use and available.
Configure REST API
Monitoring REST API management supports three functions:
To go to the monitoring submenu where you can enable REST APIs, edit the monitoring endpoint name, and configure allowed IP addresses:
- Connect to the admin instance Access Gateway Management console.
ssh oag-mgmt@[admin.tld] - Select 4 - Monitoring
- Select 5 - Configure REST APIs
Enable or Disable monitoring
The monitoring REST APIs are disabled by default.
To enable the monitoring REST APIs:
- Enter 1 to change the status of the monitoring REST APIs. A confirmation message confirms the change.
- Press any key to continue.
Configure basic status API name
You can change the monitoring REST API endpoint name by doing the following:
- Enter
2to change the endpoint name. - Enter
mto enter a new endpoint name. - Enter the new endpoint location (for example,
/mystatusendpoint). - Enter
cto commit the endpoint name change. - Enter
xto return to the previous menu.
Configure allowed IPs
The monitoring REST API only allows client requests from known predefined IP addresses. You can add and remove addresses from the list of known addresses. Commit your changes for them to take effect.
To add an IP address:
- Enter
3from the Configure REST APIs menu to manage allowed IPs. - Enter
ato add an address. - Enter a fully qualified IPv4 address or CIDR address (for example, 192.168.1.0/24).
To delete an IP address:
- Enter
3from the Configure REST APIs menu to manage allowed IPs. - Enter
dto delete an entry. - Enter the index of the address to delete.
To commit your IP address changes:
- Enter
cto commit your changes, which include any pending additions or deletions. - Enter
xto return to the previous menu.