HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/insights.cpython-38.pyc
U

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 clientZinsights)zredhat-access-insightszinsights-client)�systemZsysmgmt)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�r6|�d�n
|�d�|jddd�dS)	Nz/var/lib/insightsz%/var/log/redhat-access-insights/*.logZall_logsz/var/log/insights-client/*.log*z,/var/log/insights-client/insights-client.logz-insights-client --test-connection --net-debug�)Ztimeout)Z
add_copy_spec�configZ
get_optionZadd_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)rZdo_file_sub)r�confr	r	r
�postproc5s
��zRedHatInsights.postprocN)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZpackagesZprofilesrrr
r	r	r	r
rsrN)Zsos.report.pluginsrrrr	r	r	r
�<module>	s