idhddlmZmZmZmZmZGddeZGddeeZGddeeeZy) )Plugin RedHatPlugin DebianPlugin UbuntuPlugin PluginOptcBeZdZdZdZdZdZdZdZe ddd gZ d Z y ) ApacheaThe 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 daemonapache) webserver openshift)httpd)z /var/www/logFzgathers all apache logs)namedefaultdescc |jddgd|jddgd}|j|Dcgc]}d |jd |d c}ycc}w) Nz apachectl -Sz apachectl -tT) cmd_as_tagz apachectl -Mhttpd_Mtags) aodh ceilometercinderforemangnocchihorizonkeystonemanilanovaoctavia placementpulpz /var/log/z*/*)add_cmd_outputadd_forbidden_path apachepkg)selfsubdirssubs ;/usr/lib/python3/dist-packages/sos/report/plugins/apache.pysetupz Apache.setup&sr       N;   BI! ;>$..# 6!  ! sAN) __name__ __module__ __qualname____doc__ short_desc plugin_nameprofilespackagesfilesr option_listr+r*r r s= &JK)HH E ue2KLK r7r c*eZdZdZdZdZfdZxZS) 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.confr c:|jdddddtt|gd}|Dcgc]}d|z }}gd}|Dcgc]}d |z }}gd }|j |Dcgc]}d |z c}|D]!}|D]} |j |d | d #|j ds|j dr|j |n$|D]} |D]} |j | d | !|jddycc}wcc}wcc}w)Nhttpd_access_loghttpd_error_loghttpd_ssl_access_loghttpd_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)2224z /etc/httpd%s)z conf/*.confz conf.d/*.confzconf.modules.d/*.confz/var/log/httpd%s) access_log error_logssl_access_log ssl_error_logz%s/conf/password.conf/ httpd_confrrall_logsr systemctl_httpd) add_file_tagssuperr9r+r% add_copy_spec get_optionadd_service_status) r'versveretcdirsconfslogdirslogsetcedirconfldirr __class__s r*r+zRedHatApache.setupTs^ );(9-C,A    lD') 488C>C'88 8<<%+<<  5<! .1 #c )!   ND N""dD#9 "M N N ??5 !T__Z%@   w ' >>C&&$'<=> > .?@A9=! s D D) D)r,r-r.r/r4r&r+ __classcell__rYs@r*r9r9Cs" E I0A0Ar7r9c&eZdZdZdZfdZxZS) DebianApache)z/etc/apache2/apache2.confapache2ctt| |jddg|j d|jgd|j ds|j dr|jdgyy)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.logrrHz/var/log/apache2)rKr]r+rLrNrM)r'rYs r*r+zDebianApache.setups lD')   "   *    ??5 !T__Z%@   "  &Ar7)r,r-r.r4r&r+rZr[s@r*r]r]s *EIr7r]N) sos.report.pluginsrrrrrr r9r]r6r7r*ras?993 V3 lAA6<AAH6<r7