Файловый менеджер - Редактировать - /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/foreman.cpython-310.pyc
Ðазад
o 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 )�sysmgmt)r N� localhosti8 � � PGPASSWORD�days� z!number of days for dynflow output)�default�desc� 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}zhd}t |ddd��}|�� �� }W d � n1 sw Y |D ]D}|r.|d dkr/q$|�d�r7d }q$|rEtd |�rE|�� d | _|rStd|�rS|�� d | _|ratd |�ra|�� d | _|�d�shd}q$W n t ys Y nw | j�d�r�| j� d�s�| j�d�r�| j� d�r�| 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��rU| j| jdM dNdA� | j| jdO dPdA� | �dQ� | �dR�}| j|dS| jdT� | �� | �� | �dU��r�| �� d S 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 �foreman_production_log�foreman_tasks_config�foreman_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 ping�hammer_ping�x )�tags�timeoutzsystemctl list-units dynflow*� dynflow_unitsz!"system-dynflow\x2dsidekiq.slice"�dynflow_sidekiq_statuszdynflow-sidekiq@*)�unitsr zgc-statszpumactl_gc-stats�stats� 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 DESC�foreman_db_tables_sizes)r&