kszbcss / rhq-websphere-plugin

Plugin for RHQ which adds support for WebSphere Application Server
GNU General Public License v2.0
2 stars 1 forks source link

Auto-uninventory is not reliable on RHQ >= 4.4 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The reason is that RHQ 4.4 introduced a new availability type UNKNOWN. If a 
resource is DOWN because it has been removed from the WebSphere configuration, 
it may still be flagged as UNKNOWN from time to time (e.g. when the agent is 
unavailable). On the other hand, the auto-uninventory jobs uses 
ResourceAvailabilitySummary#getLastChange() to determine for how long a 
resource is down. This no longer yields the expected result with RHQ 4.4.

Original issue reported on code.google.com by andreas.veithen@gmail.com on 11 Oct 2012 at 11:35

GoogleCodeExporter commented 9 years ago
Fixed. The server plugin now uses a different approach to auto-uninventory 
resources. When it encounters a resource that no longer exists in the WebSphere 
configuration, it changes its availability to DISABLED and adds a custom tag 
(websphere:unconfigured). After a configurable amount of time, it will then 
remove these resources from the inventory. This works correctly even if the 
availability of the parent resource temporarily becomes UNKNOWN.

Original comment by andreas.veithen@gmail.com on 14 Dec 2012 at 3:26