%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/watchdog.cpython-312.pyc

�

i��d>��<�ddlmZmZmZddlmZGd�dee�Zy)�)�Plugin�RedHatPlugin�	PluginOpt)�globc�@�eZdZdZdZdZdZeddd��gZd	�Z	d
�Z
y)�WatchdogzWatchdog information.�watchdog)�system)r	�	conf_filez/etc/watchdog.confzwatchdog config file)�default�descc�2�d}t|d�5}|D]]}|jd�dj�}	|jdd�\}}|j�dk(r|j�}�_	ddd�|S#t$rY�vwxYw#1swY|SxYw)aGet watchdog log directory.

            Get watchdog log directory path configured in ``conf_file``.

            :returns: The watchdog log directory path.
            :returntype: str.
            :raises: IOError if ``conf_file`` is not readable.
        N�r�#r�=�zlog-dir)�open�split�strip�
ValueError)�selfr�log_dir�conf_f�line�key�values       �=/usr/lib/python3/dist-packages/sos/report/plugins/watchdog.py�get_log_dirzWatchdog.get_log_dirs�����
�)�S�
!�		�V��
���z�z�#��q�)�/�/�1���#'�:�:�c�1�#5�L�S�%��y�y�{�i�/�"'�+�+�-���

�		����"�����		���s.�(B�8A=�0B�=	B	�B�B	�	B�Bc��|j|jd��}|jd�}|j|dg�|jddg�	|j|�}|r|}|jd	�rt
|j|d
��}n7t
|j|d��t
|j|d��z}|j|�t
|jd
��D]}|jd|z��y#t$r!}|jd|�d|���Yd}~��d}~wwxYw)z�Collect watchdog information.

            Collect configuration files, custom executables for test-binary
            and repair-binary, and stdout/stderr logs.
        rz/var/log/watchdogz/etc/sysconfig/watchdogz/etc/watchdog.dz/usr/libexec/watchdog/scriptszCould not read z: N�all_logs�*z*.stdoutz*.stderrz/dev/watchdog*zwdctl %s)�	path_join�
get_option�
add_copy_specr�IOError�	_log_warnr�add_cmd_output)rrr�res�ex�	log_files�devs       r�setupzWatchdog.setup4s:���N�N�4�?�?�;�#?�@�	��.�.�!4�5��	
����%�
�	�	
����+�
�	�	F��"�"�9�-�C�����?�?�:�&��T�^�^�G�S�9�:�I��d�n�n�W�j�A�B��d�n�n�W�j�A�B�C�I�	
���9�%�����'7�8�9�	2�C����
�S� 0�1�	2���	F��N�N�i��D�E�E��	F�s�D�	E� D<�<EN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr�option_listrr,��rrrs9��(�J��K��H��H�	�+�';�-�	/��K�
�0'2r6rN)�sos.report.pluginsrrrrrr5r6r�<module>r8s ��?�>��K2�v�|�K2r6

Zerion Mini Shell 1.0