https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/watchdog.cpython-310.pyc
o

-�_g��@s6ddlmZddlmZmZmZGdd�dee�ZdS)�)�glob)�Plugin�RedHatPlugin�	PluginOptc@s<eZdZdZdZdZdZedddd�gZd	d
�Z	dd�Z
d
S)�WatchdogzWatchdog information.�watchdog)�system)r�	conf-filez/etc/watchdog.confzwatchdog config file)�default�descc
Cs�d}t|ddd��4}|D](}|�d�d��}z|�dd�\}}|��d	kr*|��}Wqty4YqwWd�|S1s@wY|S)
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�rzUTF-8)�encoding�#r�=�zlog-dir)�open�split�strip�
ValueError)�self�	conf_file�log_dir�conf_f�line�key�value�r�=/usr/lib/python3/dist-packages/sos/report/plugins/watchdog.py�get_log_dirs"	���
��zWatchdog.get_log_dirc
Cs�|�|�d��}|�d�}|�|dg�|�ddg�z|�|�}|r%|}WntyC}z|�d|�d|���WYd}~nd}~ww|�d	�rRt|�|d
��}nt|�|d��t|�|d��}|�|�t|�d
��D]
}|�d|���qndS)z�Collect watchdog information.

            Collect configuration files, custom executables for test-binary
            and repair-binary, and stdout/stderr logs.
        r	z/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 )�	path_join�
get_option�
add_copy_specr�IOError�	_log_warnr�add_cmd_output)rrr�res�ex�	log_files�devrrr�setup4s8
��
�"��
�
�zWatchdog.setupN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr�option_listrr+rrrrrs��rN)r�sos.report.pluginsrrrrrrrr�<module>s


https://t.me/RX1948 - 2025