Sindbad~EG File Manager
3
�f� � @ sV d dl mZmZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin� PluginOptc @ s@ e Zd ZdZdZdZdZdZdZdZ e
d d
dd�gZd
d� ZdS )�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 daemonZapache� webserver� openshift�httpd� /var/www/N�logFzgathers all apache logs)�name�defaultZdescc sX � j ddgdd� � j ddd� dd d
ddd
ddddddg}� j� fdd�|D �� d S )Nzapachectl -Szapachectl -tT)Z
cmd_as_tagzapachectl -MZhttpd_M)�tagsZaodhZ
ceilometerZcinderZforemanZgnocchiZhorizonZkeystoneZmanilaZnovaZoctaviaZ placementZpulpc s g | ]}d � j |f �qS )z/var/log/%s*/%s*)� apachepkg)�.0�sub)�self� �/usr/lib/python3.6/apache.py�
<listcomp>@ s z Apache.setup.<locals>.<listcomp>)Zadd_cmd_output�add_forbidden_path)r Zsubdirsr )r r �setup'