How to force a JON service resource to be removed from inventory

Solution Verified - Updated -

Environment

  • JBoss Operations Network (JON) 2.3

Issue

  • How can I remove a service from inventory when I am not able to mark it for UNINVENTORY because it has no check-box next to it?
  • Is there a way to force a service resource to be removed from inventory?
  • Is there a way to remove a web application from inventory that was un-deployed from EAP?
  • How can I remove cache services from my inventory which are no longer being deployed to EAP?

Resolution

WARNING: When a resource is removed from the inventory, historical data and metrics pertaining to that resource and any of its children is usually lost and can not be recovered.

NOTE: This process should only be done as a last resort.  Resources may have children or parent resources that depend on it and removing it in this manner may leave other resources in an incomplete or inconsistent state.  The result may require the parent service or server resource to be completely removed from inventory and re-discovered.

From within the JON UI:

  1. Navigate to Resources -> Services
  2. Locate the service that should be forcefully removed
    For example, in the search field enter standard-session-service and click search
  3. Append &debug=true to the URL in your browser's address bar
    When the page reloads, you will see a greyed-out UNINVENTORY button appear at the bottom of the resource view table

  4. Place a check in the check-box next to the service you want removed or un-inventoried

  5. Click the UNINVENTORY button located at the bottom of the resource view table

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.