https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/autofs.cpython-310.pyc
o

-�_g�@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�UbuntuPlugin�DebianPluginc@s@eZdZdZdZdZdZdZdd�Zdd	�Z	d
d�Z
dd
�ZdS)�AutofszAutofs on-demand automounter�autofs)�storage�nfs)z/etc/sysconfig/autofsz/etc/default/autofs)rcCsB|jdg|j�R�}|D]}|�d�D]
}|dvrdSqqdS)z; testing if autofs debug has been enabled anywhere
        z%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)� )z--debug�debugTF)�	file_grep�files�split)�self�opt�opt1�opt2�r�;/usr/lib/python3/dist-packages/sos/report/plugins/autofs.py�
checkdebugs���zAutofs.checkdebugcCs,|jdg|j�R�}|D]}|dSdS)z% capture daemon debug output
        z^(daemon.*)\s+(\/var\/log\/.*)�N)rr
)r�debugout�irrr�getdaemondebug$s�zAutofs.getdaemondebugcCsJ|�d�|�ddi�|�d�|�d�|��r#|�|���dSdS)N�
/etc/auto*z/etc/autofs.conf�autofs_confr�automount -m)�
add_copy_spec�
add_file_tags�add_service_status�add_cmd_outputrr�rrrr�setup-s


�zAutofs.setupcCs.|�ddd�|�ddd�|�ddd�dS)Nrz(password=)[^,\s]*z
\1********z/etc/autofs_ldap_auth.confz&(secret[\s]*[=]+[\s]*)(\'|\").*(\'|\")z\1\2********\3r)�do_path_regex_sub�do_file_sub�do_cmd_output_subr!rrr�postproc5s���zAutofs.postprocN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr
�packagesrrr"r&rrrrrs	rc�eZdZ�fdd�Z�ZS)�RedHatAutofscs&t���|�d�r|�d�dSdS)N�verifyzrpm -qV autofs)�superr"�
get_optionr r!��	__class__rrr"Ws

�zRedHatAutofs.setup�r'r(r)r"�
__classcell__rrr3rr/U�r/cr.)�DebianAutofscst���|�d�dS)Nzdpkg-query -s autofs)r1r"r r!r3rrr"_s
zDebianAutofs.setupr5rrr3rr8]r7r8N)�sos.report.pluginsrrrrrr/r8rrrr�<module>s
G

https://t.me/RX1948 - 2025