https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

([Qh�	�@sZddlZddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�CorosynczCorosync cluster engine�corosync)�cluster)rc
Cs�|�gd��|�gd��|jddd�|�d�d}|�|�s#dSd}z8|�d�}t|d	d
d��!}|D]}t�||�rI|�t�||��	d��q5Wd�WdS1sVwYWdSt
y{}z|�d
|�d|���WYd}~dSd}~ww)N)z
/etc/corosyncz/var/lib/corosync/fdataz/var/log/cluster/corosync.log*)zcorosync-quorumtool -lzcorosync-quorumtool -szcorosync-cpgtoolzcorosync-cfgtool -szcorosync-blackboxzcorosync-objctl -azcorosync-cmapctl -m statszcorosync-cmapctl�corosync_cmapctl)�tagszkillall -USR2 corosyncz/etc/corosync/corosync.confz ^\s*(logging.)?logfile:\s*(\S+)$�rzUTF-8)�encoding�zcould not read from z: )�
add_copy_spec�add_cmd_output�exec_cmd�path_exists�	path_join�open�re�match�search�group�IOError�	_log_warn)�self�
corosync_conf�pattern�cconf�file�line�err�r!�=/usr/lib/python3/dist-packages/sos/report/plugins/corosync.py�setups.	�


��&�$��zCorosync.setupcCs|�ddd�dS)Nzcorosync-objctlz(.*fence.*\.passwd=)(.*)z\1******)�do_cmd_output_sub)rr!r!r"�postproc;s
�zCorosync.postprocN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr#r%r!r!r!r"r
s&rc@seZdZdZdS)�RedHatCorosync�0 Parent class Corosync's setup() will be called N)r&r'r(�__doc__r!r!r!r"r-Csr-c@seZdZdZdZdS)�DebianCorosyncr.)z/usr/sbin/corosyncN)r&r'r(r/�filesr!r!r!r"r0Gsr0)	r�sos.report.pluginsrrrrrr-r0r!r!r!r"�<module>s
6

https://t.me/RX1948 - 2025