HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/insights.cpython-36.pyc
3

3��d	�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s4eZdZdZdZdZdZdZdZd
d�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.confcCsR|j|j�|jd�|jd�|jd�r6|jd�n
|jd�|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.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�postproc5s

zRedHatInsights.postprocN)rr)rr)r	r
rrr
)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZpackagesZprofilesrrrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>	s