HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/insights.cpython-310.pyc
o

i��d	�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s4eZdZdZdZdZdZdZdZdd�Z	d	d
�Z
dS)�RedHatInsightsaPlugin to capture configuration and logging for the Red Hat Insights
    client. Insights is used to provide ongoing analysis of systems for
    proactive problem mitigation, with the client being one of the primary
    sources of data for the service.

    This plugin will capture configuration information under
    /etc/insighits-client, as well as logs from /var/log/insights-client. A
    single connection test via the `insights-client` command is performed and
    recorded as well for troubleshooting purposes.
    z)Red Hat Insights configuration and client�insights)zredhat-access-insightszinsights-client)�system�sysmgmt)z)/etc/insights-client/insights-client.confz /etc/insights-client/.registeredz/etc/insights-client/tags.yamlz1/etc/insights-client/malware-detection-config.ymlz7/etc/redhat-access-insights/redhat-access-insights.confcCsR|�|j�|�d�|�d�|�d�r|�d�n|�d�|jddd�dS)	Nz/var/lib/insightsz%/var/log/redhat-access-insights/*.log�all_logsz/var/log/insights-client/*.log*z,/var/log/insights-client/insights-client.logz-insights-client --test-connection --net-debug�)�timeout)�
add_copy_spec�config�
get_option�add_cmd_output)�self�r�=/usr/lib/python3/dist-packages/sos/report/plugins/insights.py�setup$s




�zRedHatInsights.setupcCs,|jD]}|�|dd�|�|dd�qdS)Nz(password[\t\ ]*=[\t\ ]*)(.+)z
\1********z(proxy[\t\ ]*=.*)(:)(.*)(@.*)z\1\2********\4)r�do_file_sub)r�confrrr�postproc5s
���zRedHatInsights.postprocN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�packages�profilesrrrrrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s