+
    Û1jH  ã                   ój   € ^ RI HtHtHtHtHt  ! R R]4      t ! R R]]4      t ! R R]]]4      tR# )	é    )ÚPluginÚRedHatPluginÚDebianPluginÚUbuntuPluginÚ	PluginOptc                   óZ   a € ] tR t^t o RtRtRtRtRtRt	Rt
]! RRRR7      .tR	 tR
tV tR# )Ú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.
zApache http daemonÚapacheNÚlogFzgathers all apache logs)ÚnameÚdefaultÚdescc           
     óÌ   € V P                  R R.RR7       V P                  RRR7       . ROpT P                  V Uu. uF  pRV P                   RV R	2NK  	  up4       R
# u upi )zapachectl -Szapachectl -tT)Ú
cmd_as_tagzapachectl -MÚhttpd_M©Útagsz	/var/log/z*/Ú*N)ÚaodhÚ
ceilometerÚcinderÚforemanÚgnocchiÚhorizonÚkeystoneÚmanilaÚnovaÚoctaviaÚ	placementÚpulpzkatello-reverse-proxyzrhsm-pulpcore)Úadd_cmd_outputÚadd_forbidden_pathÚ	apachepkg)ÚselfÚsubdirsÚsubs   &  Ú;/usr/lib/python3/dist-packages/sos/report/plugins/apache.pyÚsetupÚApache.setup'   s�   € à×ÑØØð
ð ð 	ô 	ð 	×Ñ˜N°ÐÔ;ò
ˆð  	×ÑÙ<Có!
Ù<C°Sˆi˜Ÿ™Ð' r¨#¨¨aÓ0¹Gñ!
ö 	ùò !
s   ¼A!© )Ú	webserverÚ	openshift)Úhttpd)z	/var/www/)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
short_descÚplugin_nameÚprofilesÚpackagesÚfilesr#   r   Úoption_listr(   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r'   r	   r	      sJ   ø‡ € ñð &€JØ€KØ)€HØ€HØ€EØ€Iñ 	�u eÐ2KÔLð€K÷ð ó    r	   c                   óD   a a€ ] tR t^Ft oRtRtRtV 3R ltR tRt	Vt
V ;t# )ÚRedHatApacheab  
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.
r-   c           
     ó´  <€ V P                  R RRRRRRR/4       \        SV `	  4        . ROpV Uu. uF  pRV 2NK
  	  pp. ROpV Uu. uF  pR	V 2NK
  	  pp. ROpT P                  V Uu. uF  qw R
2NK	  	  up4       V F$  pV F  p	V P	                  V RV	 2RR7       K  	  K&  	  V P                  R4      '       g   V P                  R4      '       d   V P	                  V4       M(V F"  p
V F  pV P	                  V
 RV 24       K  	  K$  	  V P	                  R.4       V P                  R.4       V P                  RRR7       R# u upi u upi u upi )z/var/log/httpd/access_logÚhttpd_access_logz/var/log/httpd/error_logÚhttpd_error_logz/var/log/httpd/ssl_access_logÚhttpd_ssl_access_logz/var/log/httpd/ssl_error_logÚhttpd_ssl_error_logz
/etc/httpdz/var/log/httpdz/conf/password.confÚ/Ú
httpd_confr   r   Úall_logsz/var/lib/httpd/*z/var/lib/httpd/*.pemr-   Úsystemctl_httpdN)Ú Ú22Ú24)zconf/*.confzconf.d/*.confzconf.modules.d/*.conf)Ú
access_logÚ	error_logÚssl_access_logÚssl_error_log)Úadd_file_tagsÚsuperr(   r"   Úadd_copy_specÚ
get_optionÚadd_service_status)r$   ÚversÚverÚetcdirsÚconfsÚlogdirsÚlogsÚetcÚedirÚconfÚldirr   Ú	__class__s   &           €r'   r(   ÚRedHatApache.setupW   s˜  ø€ à×ÑØ'Ð);Ø&Ð(9Ø+Ð-CØ*Ð,Að	
ô 	ô 	‰‰Œò  ˆñ 26Ó6±¨#�Z ˜uÓ%±ˆÐ6ò
ˆñ 6:Ó:±T¨c�^ C 5Ó)±TˆÐ:ò
ˆð 	×ÑÙ3:ó!
Ù3:¨CˆeÐ&Ó'±7ñ!
ô 	ó ˆDÛ�Ø×"Ñ" d V¨1¨T¨FÐ#3¸,Ð"ÖGó ñ ð �?‰?˜5×!Ò! T§_¡_°Z×%@Ò%@Ø×Ñ˜wÕ'ã�Û�CØ×&Ñ&¨$¨¨q°° Ö7ó  ñ  ð 	×ÑØð
ô 	ð 	×ÑØ"ð!
ô 	ð 	×Ñ Ð.?ÐÖ@ùòQ 7ùò ;ùò!
s   ±EÁ	EÁ,Ec                óR   € V P                  R RR4       V P                  R RR4       R# )z/var/lib/httpd/.*jsonz(\"e\"\s*:|\"n\"\s*:)(.*[,]$)z\1 ********,z(\"e\"\s*:|\"n\"\s*:)(.*[^,]$)z\1 ********N)Údo_path_regex_sub)r$   s   &r'   ÚpostprocÚRedHatApache.postproc‘   s4   € ð  	×ÑØ#Ø,Øô	
ð
 	×ÑØ#Ø-Øö	
r<   r*   )z/etc/httpd/conf/httpd.confz/etc/httpd22/conf/httpd.confz/etc/httpd24/conf/httpd.conf)r.   r/   r0   r1   r2   r7   r#   r(   rb   r9   r:   Ú__classcell__©r^   r;   s   @@r'   r>   r>   F   s)   ù‡ € ñð€Eð
 €Iõ8A÷t
ò 
r<   r>   c                   ó:   a a€ ] tR t^­t oRtRtV 3R ltRtVtV ;t	# )ÚDebianApacheÚapache2c                ó  <€ \         SV `  4        V P                  R R.4       V P                  R4       V P                  . RO4       V P	                  R4      '       g   V P	                  R4      '       d   V P                  R.4       R# R# )z/etc/apache2/*z/etc/default/apache2rh   r   rF   z/var/log/apache2N)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.log)rP   r(   rQ   rS   rR   )r$   r^   s   &€r'   r(   ÚDebianApache.setup±   s…   ø€ Ü‰‰ŒØ×ÑØØ"ð
ô 	ð
 	×Ñ 	Ô*ð 	×Ñò 
ô 	ð �?‰?˜5×!Ò! T§_¡_°Z×%@Ò%@Ø×ÑØ"ð ö ñ &Ar<   r*   )z/etc/apache2/apache2.conf)
r.   r/   r0   r1   r7   r#   r(   r9   r:   rd   re   s   @@r'   rg   rg   ­   s   ù‡ € Ø*€EØ€I÷õ r<   rg   N)	Úsos.report.pluginsr   r   r   r   r   r	   r>   rg   r*   r<   r'   Ú<module>rl      s=   ð÷9õ 9ô6ˆVô 6ôrd
�6˜<ô d
ôN�6˜<¨ö r<   