Bug 977352 - Events will not be collected when log monitoring is enabled before managed server is started
Events will not be collected when log monitoring is enabled before managed se...
Status: NEW
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
4.4
Unspecified Unspecified
unspecified Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks: 977350
  Show dependency treegraph
 
Reported: 2013-06-24 07:23 EDT by bkramer
Modified: 2013-06-24 07:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description bkramer 2013-06-24 07:23:48 EDT
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.