Install a trust router and at least a minimal working configuration and logging.console_threshold set to info or lower.
If present, remove the monitoing section from the internal config
Run the trust router on the console (sudo -u trustrouter trust_router -c <path_to_config>
After the trust router starts up, stop it and examine its output
Expected results
[x] There should be a message tr_mons_event_init: monitoring is disabled, not enabling events or opening sockets after the messages indicating that ports were opened for TIDS and TRPS
Steps
Add a monitoring section to the internal configuration, specifying a port to listen on (e.g., 12310) and at least one credential.
Set enabled to false.
Run the trust router on the console
Try connecting using trmon to the specified port with the authorized credential.
Stop the trust router and examine the output
Expected results
[x] The same message about monitoring being disabled should appear
[x] The trmon connection should be refused
Steps
Set enabled to true and start the trust router
Use trmon <host> <port> show uptime using the configured port and credential
Stop the trust router
Remove the enabled key entirely and start the trust router
Execute the trmon command again
Stop the trust router
Expected results
[x] The trust router output should indicate that the monitoring port was opened
[x] Both trmon commands should succeed and return the uptime in seconds
Enabling / Disabling Monitoring Interface
Steps
logging.console_threshold
set toinfo
or lower.monitoing
section from the internal configsudo -u trustrouter trust_router -c <path_to_config>
Expected results
tr_mons_event_init: monitoring is disabled, not enabling events or opening sockets
after the messages indicating that ports were opened for TIDS and TRPSSteps
monitoring
section to the internal configuration, specifying a port to listen on (e.g., 12310) and at least one credential.enabled
to false.trmon
to the specified port with the authorized credential.Expected results
Steps
enabled
to true and start the trust routertrmon <host> <port> show uptime
using the configured port and credentialenabled
key entirely and start the trust routertrmon
command againExpected results
trmon
commands should succeed and return the uptime in seconds