%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/candlepin.cpython-312.pyc |
� i��d� � �D � d dl mZmZ d dlmZ d dlmZ G d� dee� Zy)� )�Plugin�RedHatPlugin)�quote)�matchc �, � e Zd ZdZdZdZd� Zdd�Zd� Zy) � Candlepinz Candlepin entitlement management� candlepin)r c �> � d| _ d| _ d} t |� j � j � D ]� }|r|d dk( r�t d|� rN|j d� d | _ | j j d � d j d� d | _ t d|� s�u|j d� d | _ �� | j d ddd�� d| j i| _ | j ddgd�� | j g d�� | j d� | j d� }| j |d| j �� | j d� }| j |d| j �� y # t t f$ r Y ��w xY w)N� localhost� �/etc/candlepin/candlepin.confr �#z&^\s*org.quartz.dataSource.myDS.URL=\S+�=� �/� �:z+^\s*org.quartz.dataSource.myDS.password=\S+� candlepin_log�candlepin_error_log�candlepin_conf)z"/var/log/candlepin/candlepin.log.*z/var/log/candlepin/err.log.*r � PGPASSWORDz/var/log/candlepin/error.logz /var/log/candlepin/candlepin.log)� sizelimit)r �/etc/candlepin/broker.xmlz/var/log/candlepin/audit*.log*z%/var/log/candlepin/candlepin.log[.-]*z/var/log/candlepin/cpdb*.log*z/var/log/candlepin/cpinit*.log*z!/var/log/candlepin/error.log[.-]*z/var/log/tomcat*/catalina*log*z"/var/log/tomcat*/host-manager*log*z/var/log/tomcat*/localhost*log*z/var/log/tomcat*/manager*log*zdu -sh /var/lib/candlepin/*/*a[ 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�candlepin_db_tables_sizes)�suggest_filename�envzN SELECT displayname, content_access_mode FROM cp_owner;�simple_content_access)�dbhost�dbpasswd�open�read� splitlinesr �split�IOError� IndexError� add_file_tagsr � add_copy_spec�add_cmd_output�build_query_cmd)�self�cfg_file�line�_cmds �>/usr/lib/python3/dist-packages/sos/report/plugins/candlepin.py�setupzCandlepin.setup s� � � "����� �2�� ��X��+�+�-�8�8�:� 7���t�A�w�#�~���B�D�I�"&�*�*�S�/�!�"4�D�K� #'�+�+�"3�"3�C�"8��";�"A�"A�#�"F�q�"I�D�K��G��N�$(�J�J�s�O�A�$6�D�M� 7� ���2A�,A�-=� � � !�$�-�-�0��� ���*�.� � � � � ��� � �"