
    ~ g	                     ,    S SK JrJr   " S S\\5      rg)    )PluginRedHatPluginc                   8    \ rS rSrSrSrSrSrSrSr	S r
S	 rS
rg)RedHatInsights   a  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)zredhat-access-insightszinsights-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.confz /etc/insights-client/.lastuploadz/etc/insights-client/machine-idc                 4   U R                  U R                  5        U R                  S5        U R                  S5        U R                  S5      (       a  U R                  S5        OU R                  S5        U R                  SSS9  U R	                  / S	QS
S9  g )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)z	/etc/rhsmz/sys/kernelz/var/lib/sssT)	recursive)add_copy_specconfig_and_status
get_optionadd_cmd_outputadd_dir_listing)selfs    =/usr/lib/python3/dist-packages/sos/report/plugins/insights.pysetupRedHatInsights.setup&   s    4112./ 	BC??:&&@AMN; 	 	

 	I'+ 	 	-    c                 v    U R                    H)  nU R                  USS5        U R                  USS5        M+     g )Nz(password[\t\ ]*=[\t\ ]*)(.+)z
\1********z(proxy[\t\ ]*=.*)(:)(.*)(@.*)z\1\2********\4)r   do_file_sub)r   confs     r   postprocRedHatInsights.postproc:   sA    **D6 68I +r    N)__name__
__module____qualname____firstlineno____doc__
short_descplugin_namepackagesprofilesr   r   r   __static_attributes__r   r   r   r   r      s/    	 =JK<H$H-(r   r   N)sos.report.pluginsr   r   r   r   r   r   <module>r+      s    46V\ 6r   