U
    -_g!                     @   s*   d dl mZmZmZ G dd deeZdS )    )PluginIndependentPlugin	PluginOptc                   @   s4   e Zd ZdZdZdZdZeddddgZd	d
 Z	dS )Nginxznginx http daemonnginx)Z	webserver)r   logFzcollect all nginx logs)defaultZdescc                 C   s^   |  ddg | dddg dddg}| d	d
 |D  | dsP| drZ| d d S )Nznginx -Vznginx -Tz/etc/nginx/*z/var/log/nginx/access.logz/var/log/nginx/error.logZautomationcontrollerZautomationhubZautomationedacontrollerc                 S   s   g | ]}d | dqS )z/var/log/nginx/* ).0Zaltr
   r
   :/usr/lib/python3/dist-packages/sos/report/plugins/nginx.py
<listcomp>,   s    zNginx.setup.<locals>.<listcomp>r   Zall_logsz/var/log/nginx/*)Zadd_cmd_outputZadd_copy_specZadd_forbidden_pathZ
get_option)selfZaltconfr
   r
   r   setup   s$    	
zNginx.setupN)
__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesr   Zoption_listr   r
   r
   r
   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r
   r
   r
   r   <module>	   s   