Chapter 11. Monitoring compliance
Chapter 11. Monitoring compliance With Satellite, you can centralize compliance monitoring and management. A compliance dashboard provides an overview of compliance of hosts and the ability to view details for each host within the scope of that policy. Compliance reports provide a detailed analysis of compliance of each host with the applicable policy. With this information, you can evaluate the risks presented by each host and manage the resources required to bring hosts into compliance. By monitoring compliance with SCAP, you can verify policy compliance and detect changes in compliance. 11.1. Searching compliance reports Use the Compliance Reports search field to filter the list of available reports on any subset of hosts. Procedure In the Satellite web UI, navigate to Hosts > Compliance > Reports . Optional: To see a list of available search parameters, click the empty Search field. Enter the search query in the Search field and click Search . The search query is case insensitive. Search query examples Find all compliance reports for which more than five rules failed Find all compliance reports created after January 1, 2023, for hosts with hostnames that contain prod- Find all reports generated by the rhel7_audit compliance policy from an hour ago Find reports that pass an XCCDF rule Find reports that fail an XCCDF rule Find reports that have a result different than fail or pass for an XCCDF rule Additional information You can create complex queries with the following logical operators: and , not and has . For more information about logical operators, see Supported Operators for Granular Search in Administering Red Hat Satellite . You cannot use regular expressions in a search query. However, you can use multiple fields in a single search expression. For more information about all available search operators, see Supported Operators for Granular Search in Administering Red Hat Satellite . You can bookmark a search to reuse the same search query. For more information, see Creating Bookmarks in Administering Red Hat Satellite . 11.2. Compliance email notifications Satellite Server sends an OpenSCAP Summary email to all users who subscribe to the Compliance policy summary email notifications. For more information on subscribing to email notifications, see Configuring Email Notification Preferences in Administering Red Hat Satellite . Each time a policy is run, Satellite checks the results against the run, noting any changes between them. The email is sent according to the frequency requested by each subscriber, providing a summary of each policy and its most recent result. 11.3. Viewing compliance policy statistics You can view a compliance policy dashboard to verify compliance reports of a particular policy. The compliance policy dashboard provides a statistical summary of compliance of hosts and the ability to view report details for each host within the scope of that policy. Consider prioritizing the following hosts when viewing compliance reports: Hosts which were evaluated as Failed Hosts labelled as Never audited because their status is unknown Prerequisites Your user account has a role assigned that has the view_policies permission. Procedure In the Satellite web UI, navigate to Hosts > Compliance > Policies . In the row of the required policy, navigate to the Actions column and click Dashboard . 11.4. Examining hosts per rule compliance result You can examine a simplified report and use policy rules to list hosts that have a certain compliance result, such as failing a particular rule. Prerequisites Your user account has a role assigned that has the view_arf_reports and view_hosts permissions. Procedure In the Satellite web UI, navigate to Hosts > Compliance > Reports . In the Reported At column, navigate to the report of the required host and compliance policy, and click the time link. Satellite displays a simplified list of policy rules with the results of the scan. Optional: Filter the rules by check result. From the Show log messages dropdown list, select one of the following filters: Failed and othered - to view rules that have failed or have not been checked during the scan, Failed only - to view only rules that have failed. Optional: Examine the details of the rule. In the Message column, click the icon to the name of the rule. In the row of the required rule, navigate to the Actions column and click Hosts failing this rule . 11.5. Examining compliance failures of a host You can examine a full compliance report, determine why a host failed compliance on a rule, and, in some cases, see how to remediate a case of non-compliance. Warning Do not implement any of the recommended remedial actions or scripts without first testing them in a non-production environment. Remediation might render the system non-functional. A compliance report consists of the following areas: Introduction Evaluation Characteristics Compliance and Scoring Rule Overview Prerequisites Your user account has a role assigned that has the view_arf_reports and view_hosts permissions. Procedure In the Satellite web UI, navigate to Hosts > Compliance > Reports to list all compliance reports. In the row of the required host, navigate to the Actions column and click Full Report to view the complete details of an evaluation report. Navigate to the Evaluation Characteristics area to review basic details about the evaluation of the host against a specific profile. Navigate to the Compliance and Scoring area to review evaluation statistics and the host compliance score. Navigate to the Rule Overview to examine the rules. Optional: Deselect the check statuses that you want to hide, such as pass , notapplicable , or fixed . Optional: From the Group rule by dropdown menu, select the criterion for the grouping of rules, such as Severity . Optional: Enter a search string into the search field to filter rules by title. The search is case insensitive and applied dynamically as you type. Click the title of a rule to inspect further result details: A description of the rule with instructions for bringing the host into compliance if available. The rationale for the rule. In some cases, a remediation script. 11.6. Deleting a compliance report You can delete compliance reports on your Satellite. Prerequisites Your user account has a role assigned that has the view_arf_reports and destroy_arf_reports permissions. Procedure In the Satellite web UI, navigate to Hosts > Compliance > Reports . In the Compliance Reports window, identify the policy that you want to delete and, on the right of the policy's name, select Delete . Click OK . 11.7. Deleting multiple compliance reports You can delete multiple compliance policies simultaneously. However, in the Satellite web UI, compliance policies are paginated, so you must delete one page of reports at a time. If you want to delete all OpenSCAP reports, use the script in Deleting OpenSCAP Reports in the API guide . Prerequisites Your user account has a role assigned that has the view_arf_reports and destroy_arf_reports permissions. Procedure In the Satellite web UI, navigate to Hosts > Compliance > Reports . In the Compliance Reports window, select the compliance reports that you want to delete. In the upper right of the list, select Delete reports . Repeat these steps for as many pages as you want to delete.
failed > 5 host ~ prod- AND date > "Jan 1, 2023" "1 hour ago" AND compliance_policy = date = "1 hour ago" AND compliance_policy = rhel7_audit xccdf_rule_passed = xccdf_org.ssgproject.content_rule_firefox_preferences-auto-download_actions xccdf_rule_failed = xccdf_org.ssgproject.content_rule_firefox_preferences-auto-download_actions xccdf_rule_othered = xccdf_org.ssgproject.content_rule_firefox_preferences-auto-download_actions