Spamworldpro Mini Shell
Spamworldpro


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__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

i��d��@sVddlmZmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin�	PluginOptc@s<eZdZdZdZdZdZdZdZe	ddd	d
�gZ
dd�Zd
S)�Apachea�The Apache plugin covers the upstream Apache webserver project,
    regardless of the packaged name; apache2 for Debian and Ubuntu, or httpd
    for Red Hat family distributions.

    The aim of this plugin is for Apache-specific information, not necessarily
    other projects that happen to place logs or similar files within the
    standardized apache directories. For example, OpenStack components that log
    to apache logging directories are excluded from this plugin and collected
    via their respective OpenStack plugins.

    Users can expect the collection of apachectl command output, apache server
    logs, and apache configuration files from this plugin.
    zApache http daemon�apache)�	webserver�	openshift)�httpd)z	/var/www/�logFzgathers all apache logs)�name�default�desccsD�jddgdd��jddd�gd�}���fd	d
�|D��dS)Nzapachectl -Szapachectl -tT)�
cmd_as_tagzapachectl -M�httpd_M��tags)�aodh�
ceilometer�cinder�foreman�gnocchi�horizon�keystone�manila�nova�octavia�	placement�pulpcsg|]	}d�j|f�qS)z/var/log/%s*/%s*)�	apachepkg)�.0�sub��self��;/usr/lib/python3/dist-packages/sos/report/plugins/apache.py�
<listcomp>>s�z Apache.setup.<locals>.<listcomp>)�add_cmd_output�add_forbidden_path)r$�subdirsr%r#r&�setup&s���zApache.setupN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packages�filesr�option_listr+r%r%r%r&r
s�rcs(eZdZdZdZdZ�fdd�Z�ZS)�RedHatApachea~
    On Red Hat distributions, the Apache plugin will also attempt to collect
    JBoss Web Server logs and configuration files.

    Note that for Red Hat distributions, this plugin explicitly collects for
    'httpd' installations. If you have installed apache from source or via any
    method that uses the name 'apache' instead of 'httpd', these collections
    will fail.
    )z/etc/httpd/conf/httpd.confz/etc/httpd22/conf/httpd.confz/etc/httpd24/conf/httpd.confrc
s�|�ddddd��tt|���gd�}dd�|D�}gd	�}d
d�|D�}gd�}|�dd�|D��|D]}|D]
}|jd
||fdd�q;q7|�d�sT|�d�rZ|�|�n|D]}|D]}	|�d
||	f�q`q\|jddd�dS)N�httpd_access_log�httpd_error_log�httpd_ssl_access_log�httpd_ssl_error_log)z/var/log/httpd/access_logz/var/log/httpd/error_logz/var/log/httpd/ssl_access_logz/var/log/httpd/ssl_error_log)��22�24cS�g|]}d|�qS)z/etc/httpd%sr%�r!�verr%r%r&r'd�z&RedHatApache.setup.<locals>.<listcomp>)zconf/*.confz
conf.d/*.confzconf.modules.d/*.confcSr>)z/var/log/httpd%sr%r?r%r%r&r'mrA)�
access_log�	error_log�ssl_access_log�
ssl_error_logcSr>)z%s/conf/password.confr%)r!�etcr%r%r&r'us�z%s/%s�
httpd_confrr�all_logsr�systemctl_httpd)�
add_file_tags�superr6r+r)�
add_copy_spec�
get_option�add_service_status)
r$�vers�etcdirs�confs�logdirs�logs�edir�conf�ldirr��	__class__r%r&r+Ts4�
���zRedHatApache.setup)r,r-r.r/r4r r+�
__classcell__r%r%rWr&r6Cs
	r6cs$eZdZdZdZ�fdd�Z�ZS)�DebianApache)z/etc/apache2/apache2.conf�apache2cs\tt|���|�ddg�|�d�|�gd��|�d�s$|�d�r,|�dg�dSdS)Nz/etc/apache2/*z/etc/default/apache2r[)z/var/log/apache2/access.logz/var/log/apache2/error.logz/var/log/apache2/ssl_access.logz/var/log/apache2/ssl_error.logz(/var/log/apache2/other_vhosts_access.logrrHz/var/log/apache2)rKrZr+rLrNrMr#rWr%r&r+�s�

��zDebianApache.setup)r,r-r.r4r r+rYr%r%rWr&rZ�srZN)	�sos.report.pluginsrrrrrrr6rZr%r%r%r&�<module>s6D

Spamworldpro Mini