History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-1
Type: New Feature New Feature
Status: Accepted Accepted
Priority: Major Major
Assignee: Unassigned
Reporter: John Mazzitelli
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

be able to ignore resource types

Created: 22/Feb/08 09:46 AM   Updated: 10/Oct/08 03:56 PM
Component/s: Agent, FX - Inventory, Plugin Container
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Relation
 


 Description  « Hide
We would like a feature in RHQ such that an admin can completely disable or ignore a resource type from being managed. For example, suppose I do not want to manage any Postgres databases. I should be able to go to the Administration page and "disable" the postgres plugin's resource type for Postgres database servers (which should also disable child types). Would also be nice to completely disable a plugin, which could be as simple as saying, "all resource types defined by this plugin are to be ignored".

A possible solution is as follows:

a) have an admin page that gives you a list of all resource types and you select the ones you want to "ignore"
b) when an inventory report comes in, have it completely ignore/not process those resources of an "ignored" type (DiscoveryBossBean.mergeInventoryReport would be where this would be done). So the resource won't even make it into inventory if its of an ignored type
c) have the two "updateInventoryStatus" and/or "setResourceStatus" in ResourceManagerBean to ignore the request and not do anything if the status to change to is COMMITTED and the resource's type is an "ignored" type (this would only be necessary for those resources that were already discovered before the types were ignored - in this case, the resources would remain in the NEW status - probably not a good thing to have resources always in the NEW status - maybe when you mark a type as "ignored" in a) we go through and purge all resources of that type.

The whole idea, therefore, is to not have the resources in inventory at all (if they are one of the "ignored" resource types). If you can be assured only the resources in RHQ_RESOURCE are valid, unignored types, then everything else works fine as-is.

The only question then becomes, how do you tell the agent that it should remove resources it discovered from its internal inventory? Perhaps the return value of mergeInventoryReport is a List<Resouce> of those resources that were not merged and should be purged from the agent inventory. I'm not sure I have a good handle on how this particular issue should work and I would like a discussion in this JIRA to flush this out.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
John Mazzitelli - 22/Feb/08 10:30 AM
See forum thread I started on this so we can discuss over there:

http://forums.rhq-project.org/viewtopic.php?f=5&t=14

John Mazzitelli - 27/Feb/08 10:58 AM
don't know when this will be implemented.

as a workaround, you can delete plugins from the rhq.ear/rhq-downloads/rhq-plugins prior to agents connecting to the server. This removes all resource types from the deleted plugins - so those resource types will not be manageable in your environment.