Bug 977352 - Events will not be collected when log monitoring is enabled before managed server is started
Summary: Events will not be collected when log monitoring is enabled before managed se...
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 977350
TreeView+ depends on / blocked
 
Reported: 2013-06-24 11:23 UTC by bkramer
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description bkramer 2013-06-24 11:23:48 UTC
Description of problem:
Newly added monitoring server "test-jboss-managed-server" is not started so there is no test-jboss-managed-server folder under domain/servers. When we enable event monitoring, the following message will be logged:

ERROR [ResourceContainer.invoker.daemon-1] (core.pluginapi.event.log.LogFileEventResourceComponentHelper)- LOGFILE: Logfile at location /opt/app/jboss-eap-6.1/domain/servers/test-jboss-managed-server/log/server.log does not exist or is not readable. Can not start watching the event log.

and the events will not be captured.


Version-Release number of selected component (if applicable):
RHQ 4.4.0

How reproducible:
Always

Steps to Reproduce:
1. Import JBoss 6.1 in domain mode into inventory;
2. Create new managed server "test-jboss-managed-server";
3. Before above server is started, enable log monitoring (test-jboss-managed-server resource -> Inventory -> Connection Settings);
4. check domain/servers and confirm that test-jboss-managed-server folder does not exist;


Actual results:
The error message will be logged:

ERROR [ResourceContainer.invoker.daemon-1] (core.pluginapi.event.log.LogFileEventResourceComponentHelper)- LOGFILE: Logfile at location /opt/app/jboss-eap-6.1/domain/servers/test-jboss-managed-server/log/server.log does not exist or is not readable. Can not start watching the event log.

and no events are captured.


Expected results:
No errors are logged and events are properly captured.

Additional info:
If the server is first started and then log monitoring is enabled, then events are captured properly.


Note You need to log in before you can comment on or make changes to this bug.