Created attachment 577317 [details] agent-server logs Description of problem: Drift feature is not working as we expect. It's working rarely. But most of the time it's not working. It's happening from Mar-2012. Version-Release number of selected component (if applicable): Version: 4.4.0-SNAPSHOT Build Number: 472e72f GWT Version: 2.4.0 SmartGWT Version: 3.0 How reproducible: 99% Steps to Reproduce: 1.Do fresh install of RHQ Server and agent(clean DB also, I didn't try with upgrade installation) 2.Start Server and agent (import resources also) 3.Navigate to 'Platforms' and select a Linux platform 4.select the tab 'Drift' 5.create new drift with 'fileSystem'--> /opt/rhq/rhq-agent 6.selected interval as 60 seconds 7.Includes dir 'logs' and lease as it's Excludes. 8.Save it and run 'Detect Now' 9.getting info log on agent but nothing happen 2012-04-13 17:13:47,196 INFO [WorkerThread#0[10.65.201.40:51968]] (rhq.core.pc.drift.DriftManager)- Received request to schedule drift detection immediately for [resourceId: 10001, driftDefinitionId: 10021, driftDefinitionName: agent log monitor] Actual results: Drift feature is not working as expected Expected results: Should work as we designed Note: Seems existing drift(s) are not scheduled in agent if we restart the agent --------- 2012-04-13 17:43:59,608 INFO [WorkerThread#0[10.65.201.40:34783]] (rhq.core.pc.drift.DriftManager)- Received request to schedule drift detection immediately for [resourceId: 10001, driftDefinitionId: 10021, driftDefinitionName: agent log monitor] 2012-04-13 17:43:59,608 WARN [WorkerThread#0[10.65.201.40:34783]] (rhq.core.pc.drift.DriftManager)- No schedule found in the queue for [resourceId: 10001, driftDefinitionId: 10021, driftDefinitionName: agent log monitor]. No work will be scheduled. --------- Additional info: agent and server logs are attached.
Created attachment 581474 [details] snapshots image i tried this and its all working for me. I did a Detect Now, and immediately got a snapshot. I tried several minutes later, again with Detect Now, and again immediately got another snapshot. See attached screenshot.
(In reply to comment #1) > Created attachment 581474 [details] > snapshots image > > i tried this and its all working for me. I did a Detect Now, and immediately > got a snapshot. I tried several minutes later, again with Detect Now, and again > immediately got another snapshot. See attached screenshot. OK, I shutdown and restarted the agent (did NOT do a --cleanconfig). And I do not see additional drift being detected (which I assume should be, because the agent log file should at least change as the agent logs startup messages).
git commit to master: 69d90a894da28e2dcbce262b6823cc0655da4ce4 (this fixes the bug) 7be2f043a25568f5cda38f7f32680e22165bdb2e (this adds drift info to the inventory --xml output for help in debugging issues like this)
*** Bug 818773 has been marked as a duplicate of this bug. ***
This is verified in JON 3.1 ER3 BETA CANDIDATE
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.