HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/corosync.cpython-39.pyc
a

^��cb	�@sZddlmZmZmZmZddlZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginNc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�CorosynczCorosync cluster engine�corosync)Zcluster)rc
Cs�|�gd��|�gd��|jddd�|�d�d}|�|�sFdSd}zbt|�d�d	��>}|D](}t�||�rb|�t�||��	d
��qbWd�n1s�0YWn6t
y�}z|�d||f�WYd}~n
d}~00dS)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-cmapctlZcorosync_cmapctl)�tagszkillall -USR2 corosyncz/etc/corosync/corosync.confz ^\s*(logging.)?logfile:\s*(\S+)$�r�zcould not read from %s: %s)Z
add_copy_specZadd_cmd_outputZexec_cmdZpath_exists�openZ	path_join�re�match�search�group�IOErrorZ	_log_warn)�selfZ
corosync_conf�pattern�f�line�e�r�?/usr/lib/python3.9/site-packages/sos/report/plugins/corosync.py�setups"	�

<zCorosync.setupcCs|�ddd�dS)Nzcorosync-objctlz(.*fence.*\.passwd=)(.*)z\1******)Zdo_cmd_output_sub�rrrr�postproc:s
�zCorosync.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrr
s%rcseZdZ�fdd�Z�ZS)�RedHatCorosynccstt|���dS�N)�superrrr��	__class__rrrDszRedHatCorosync.setup)rrrr�
__classcell__rrr!rrBsrcs eZdZ�fdd�ZdZ�ZS)�DebianCorosynccstt|���dSr)r r$rrr!rrrJszDebianCorosync.setup)z/usr/sbin/corosync)rrrr�filesr#rrr!rr$Hsr$)	Zsos.report.pluginsrrrrrrrr$rrrr�<module>	s5