![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
o i��d( � @ sR d dl mZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�UbuntuPlugin�DebianPluginc @ s@ e Zd ZdZdZdZdZdZdd� Zdd � Z d d� Z dd � ZdS )�AutofszAutofs on-demand automounter�autofs)�storage�nfs)z/etc/sysconfig/autofsz/etc/default/autofs)r c C sB | j dg| j�R � }|D ]}|�d�D ] }|dv r dS qqdS )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� checkdebug s ���zAutofs.checkdebugc C s, | j dg| j�R � }|D ]}|d S dS )z% capture daemon debug output z^(daemon.*)\s+(\/var\/log\/.*)� N)r r )r �debugout�ir r r �getdaemondebug$ s ��zAutofs.getdaemondebugc C sJ | � d� | �ddi� | �d� | �d� | �� r#| � | �� � d S d S )N� /etc/auto*z/etc/autofs.conf�autofs_confr �automount -m)� add_copy_spec� add_file_tags�add_service_status�add_cmd_outputr r �r r r r �setup, s �zAutofs.setupc C s. | � ddd� | �ddd� | �ddd� d S )Nr z(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! r r r �postproc4 s ���zAutofs.postprocN)�__name__� __module__�__qualname__� short_desc�plugin_name�profilesr �packagesr r r"