Red Hat Bugzilla – Bug 536551
Agent log monitoring
Last modified: 2014-11-09 17:50:30 EST
Enhancement to add log monitoring for the agent. (Should be pretty simple to add the config and connect the delgate)
related: I'd like to see a config option on the agent to turn on debug logging
Unfortunately needs to be moved out.
the agent has a "debug" prompt command now - this let's you turn on/off debug logging. The RHQ Agent resource now has an operation to execute prompt commands remotely, so you can do this now from the UI.
However, we still need what this JIRA is asking for - agent log monitoring.
putting this on the "1.2" list, just so we make sure we at least take a look at this for inclusion in next release. The description claims this should be pretty simple to add, so it may be a piece of low-hanging fruit we can get).
agent log monitoring - useful for perf test environments or production environments to see what the agent is doing.
By default, its disabled, you have to enable the log monitoring in plugin config to turn it on. you can monitor one or both of the agent.log and command-trace.log"
a) import a new agent
b) go to plugin configuration (aka connection properties) for that agent
c) enable the two logs that show up in there
d) let agent run for a few minutes
e) go to Events tab and see events
f) go back and disable the log settings in plugin configuration
g) let agent run for a few minutes
h) verify no more logs are getting into the system
Note: to see the command-trace.log, you have to enable command tracing in the agent. The easiest way to do that is to execute the agent prompt command "debug -c true". You can do this at the prompt or via the Operation from the agent's Operation tab.
Tested this using the procedure above. Other than some UI issues with events in general, the test passed. I opened the other issues separately. rev3574
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-88
This bug relates to RHQ-633