Chapter 10. Monitoring hosts by using Red Hat Insights


You can use Insights to diagnose systems and downtime related to security exploits, performance degradation, and stability failures. You can use the Insights dashboard to quickly identify key risks to stability, security, and performance. You can sort by category, view details of the impact and resolution, and then determine what systems are affected.

To use Insights to monitor hosts that you manage with Satellite, you must first install Insights on your hosts and register your hosts with Insights.

For new Satellite hosts, you can install and configure Insights during host registration to Satellite. For more information, see Section 4.3, “Registering hosts by using global registration”.

For hosts already registered to Satellite, you can install and configure Insights on your hosts by using an Ansible role. For more information, see Section 10.3, “Deploying Red Hat Insights by using the Ansible role”.

Additional information

  • To view the logs for all plugins, go to /var/log/foreman/production.log.
  • If you have problems connecting to Insights, ensure that your certificates are up-to-date. Refresh your subscription manifest to update your certificates.
  • You can change the default schedule for running insights-client by configuring insights-client.timer on a host. For more information, see Changing the insights-client schedule in the Client Configuration Guide for Red Hat Insights.

10.1. Access to information from Insights in Satellite

You can access the additional information available for hosts from Red Hat Insights in the following places in the Satellite web UI:

  • Navigate to Configure > Insights where the vertical ellipsis next to the Remediate button provides a View in Red Hat Insights link to the general recommendations page. On each recommendation line, the vertical ellipsis provides a View in Red Hat Insights link to the recommendation rule, and, if one is available for that recommendation, a Knowledgebase article link.
  • For additional information, navigate to Hosts > All Hosts. If the host has recommendations listed, click on the number of recommendations. On the Insights tab, the vertical ellipsis next to the Remediate button provides a Go To Satellite Insights page link to information for the system, and a View in Red Hat Insights link to host details on the console.

10.2. Excluding hosts from rh-cloud and insights-client reports

You can set the host_registration_insights parameter to False to omit rh-cloud and insights-client reports. Satellite will exclude the hosts from rh-cloud reports and block insights-client from uploading a report to the cloud.

Procedure

  1. In the Satellite web UI, navigate to Host > All Hosts.
  2. Select any host for which you want to change the value.
  3. On the Parameters tab, click on the edit button of host_registration_insights.
  4. Set the value to False.

If you set the parameter to false on a host that is already reported on the Red Hat Hybrid Cloud Console, it will be still removed automatically from the inventory. However, this process can take some time to complete.

Additional resources

10.3. Deploying Red Hat Insights by using the Ansible role

The RedHatInsights.insights-client Ansible role is used to automate the installation and registration of hosts with Insights. For more information about adding this role to your Satellite, see Getting Started with Ansible in Satellite in Managing configurations by using Ansible integration.

Procedure

  1. Add the RedHatInsights.insights-client role to the hosts.

    For new hosts, see Section 2.1, “Creating a host in Red Hat Satellite”.

    For existing hosts, see Using Ansible Roles to Automate Repetitive Tasks on Clients in Managing configurations by using Ansible integration.

  2. To run the RedHatInsights.insights-client role on your host, navigate to Hosts > All Hosts and click the name of the host that you want to use.
  3. On the host details page, expand the Schedule a job dropdown menu.
  4. Click Run Ansible roles.

10.4. Configuring synchronization of Insights recommendations for hosts

You can enable automatic synchronization of the recommendations from Red Hat Hybrid Cloud Console that occurs daily by default. If you leave the setting disabled, you can synchronize the recommendations manually.

Procedures

  • To get the recommendations automatically:

    1. In the Satellite web UI, navigate to Configure > Insights.
    2. Enable Sync Automatically.
  • To get the recommendations manually:

    1. In the Satellite web UI, navigate to Configure > Insights.
    2. On the vertical ellipsis, click Sync Recommendations.

10.5. Configuring automatic removal of hosts from the Insights Inventory

When hosts are removed from Satellite, they can also be removed from the inventory of Red Hat Insights, either automatically or manually. You can configure automatic removal of hosts from the Insights Inventory during Red Hat Hybrid Cloud Console synchronization with Satellite that occurs daily by default. If you leave the setting disabled, you can still remove the bulk of hosts from the Inventory manually.

Prerequisites

  • Your user account must have the permission of view_foreman_rh_cloud to view the Inventory Upload page in Satellite web UI.

Procedure

  1. In the Satellite web UI, navigate to Configure > Inventory Upload.
  2. Enable the Automatic Mismatch Deletion setting.

10.6. Creating an Insights remediation plan for hosts

With Satellite, you can create a Red Hat Insights remediation plan and run the plan on Satellite hosts.

Procedure

  1. In the Satellite web UI, navigate to Configure > Insights.
  2. On the Red Hat Insights page, select the number of recommendations that you want to include in an Insights plan.

    You can only select the recommendations that have an associated playbook.

  3. Click Remediate.
  4. In the Remediation Summary window, you can select the Resolutions to apply. Use the Filter field to search for specific keywords.
  5. Click Remediate.
  6. In the Job Invocation page, do not change the contents of precompleted fields.
  7. Optional. For more advanced configuration of the Remote Execution Job, click Show Advanced Fields.
  8. Select the Type of query you require.
  9. Select the Schedule you require.
  10. Click Submit.

Alternatively:

  1. In the Satellite web UI, navigate to Hosts > All Hosts.
  2. Select a host.
  3. On the Host details page, click Recommendations.
  4. On the Red Hat Insights page, select the number of recommendations you want to include in an Insights plan and proceed as before.

In the Jobs window, you can view the progress of your plan.

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.