Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g � @ sR d dl mZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�UbuntuPlugin�DebianPluginc @ s@ e Zd ZdZdZdZdZdZdd� Zd d � Z dd� Z d d� ZdS )�AutofszAutofs on-demand automounter�autofs�storage�nfs�/etc/sysconfig/autofs�/etc/default/autofsc C sB | j d| j�� }x,|D ]$}x|jd�D ]}|dkr&dS q&W qW dS ) z; testing if autofs debug has been enabled anywhere �%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)� �--debug�debugTF)r )r r )� file_grep�files�split)�self�optZopt1Zopt2� r �/usr/lib/python3.6/autofs.py� checkdebug s zAutofs.checkdebugc C s( | j d| j�� }x|D ] }|d S W dS )z% capture daemon debug output �^(daemon.*)\s+(\/var\/log\/.*)� N)r )r r )r Zdebugout�ir r r �getdaemondebug$ s zAutofs.getdaemondebugc C sF | j d� | jddi� | jd� | jd� | j� rB| j | j� � d S )Nz /etc/auto*z/etc/autofs.confZautofs_confr zautomount -m)Z add_copy_specZ add_file_tagsZadd_service_status�add_cmd_outputr r )r r r r �setup- s zAutofs.setupc C s. | j ddd� | jddd� | jddd� d S )Nz /etc/auto*z(password=)[^,\s]*z \1********z/etc/autofs_ldap_auth.confz&(secret[\s]*[=]+[\s]*)(\'|\").*(\'|\")z\1\2********\3zautomount -m)Zdo_path_regex_subZdo_file_subZdo_cmd_output_sub)r r r r �postproc5 s zAutofs.postprocN)r r )r r )r )�__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesr Zpackagesr r r r r r r r r s r c s e Zd Z� fdd�Z� ZS )�RedHatAutofsc s"