HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/insights.cpython-36.opt-1.pyc
3

-�_g�	�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s4eZdZdZdZdZdZdZdZdd�Z	dd�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�redhat-access-insights�insights-client�system�sysmgmt�)/etc/insights-client/insights-client.conf� /etc/insights-client/.registered�/etc/insights-client/tags.yaml�1/etc/insights-client/malware-detection-config.yml�7/etc/redhat-access-insights/redhat-access-insights.conf� /etc/insights-client/.lastupload�/etc/insights-client/machine-idcCsf|j|j�|jd�|jd�|jd�r6|jd�n
|jd�|jddd�|jd	d
dgdd
�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�)Ztimeoutz	/etc/rhsmz/sys/kernelz/var/lib/sssT)�	recursive)Z
add_copy_spec�config_and_statusZ
get_optionZadd_cmd_outputZadd_dir_listing)�self�r�/usr/lib/python3.6/insights.py�setup&s



zRedHatInsights.setupcCs0x*|jD] }|j|dd�|j|dd�qWdS)Nz(password[\t\ ]*=[\t\ ]*)(.+)z
\1********z(proxy[\t\ ]*=.*)(:)(.*)(@.*)z\1\2********\4)rZdo_file_sub)rZconfrrr�postproc:s

zRedHatInsights.postprocN)rr)rr)r	r
rrr
rr)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZpackagesZprofilesrrrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>	s