Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g� � @ sZ d dl Z d dlmZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc @ s, e Zd ZdZdZd Zd Zdd� Zdd� ZdS )�CorosynczCorosync cluster engine�corosync�clusterc C s� | j dddg� | jdddddd d g� | jddd � | jd� d}| j|�sRd S d}yZ| jd�}t|ddd��8}x0|D ](}tj||�rx| j tj||�j d�� qxW W d Q R X W n8 t k r� } z| jd|� d|� �� W Y d d }~X nX d S )Nz /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)Ztagszkillall -USR2 corosyncz/etc/corosync/corosync.confz ^\s*(logging.)?logfile:\s*(\S+)$�rzUTF-8)�encoding� zcould not read from z: )Z add_copy_specZadd_cmd_outputZexec_cmdZpath_existsZ path_join�open�re�match�search�group�IOErrorZ _log_warn)�selfZ corosync_conf�patternZcconf�file�line�err� r �/usr/lib/python3.6/corosync.py�setup s6 *zCorosync.setupc C s | j ddd� d S )Nzcorosync-objctlz(.*fence.*\.passwd=)(.*)z\1******)Zdo_cmd_output_sub)r r r r �postproc; s zCorosync.postprocN)r )r ) �__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesZpackagesr r r r r r r s &r c @ s e Zd ZdZdS )�RedHatCorosyncz0 Parent class Corosync's setup() will be called N)r r r �__doc__r r r r r C s r c @ s e Zd ZdZdZdS )�DebianCorosyncz0 Parent class Corosync's setup() will be called �/usr/sbin/corosyncN)r! )r r r r �filesr r r r r G s r ) r Zsos.report.pluginsr r r r r r r r r r r �<module> s 6