| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/sos/report/plugins/__pycache__/ |
Upload File : |
a
ܓ�i� � @ sz d dl Z d dlmZmZ d dlmZmZmZmZmZ d dl m
Z
G dd� de�ZG dd� deee�ZG d d
� d
ee�Z
dS )� N)�datetime� timedelta)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin� PluginOpt)�sos_parse_versionc @ sn e Zd ZdZdZdZdZeddedd�ed d
dd�gZ dZ
d
d� Zdd� Zdd� Z
dd� Zdd� Zdd� ZdS )� Pacemakerz4Pacemaker high-availability cluster resource manager� pacemaker)Zcluster)r zpacemaker-remote�crm-from� z%specfiy the start time for crm_report)�defaultZval_type�desc� crm-scrubTz$enable crm_report password scrubbing)r r c C s | � d� dS )z Get cluster summary zcrm_mon -1 -A -n -r -tN��add_cmd_output��self� r �@/usr/lib/python3.9/site-packages/sos/report/plugins/pacemaker.py�
setup_crm_mon$ s zPacemaker.setup_crm_monc C s | � ddg� dS )z& Get cluster status and configuration z
crm status�crm configure showNr r r r r �setup_crm_shell( s �zPacemaker.setup_crm_shellc C s� | j j�d�}|du rdS | �d� | �g d�� d�|d �}t|�td�kr\| �d� n
| �d � | jd
dd� | jd
dd� | jddd� dS )z& Get pacemaker/corosync configuration ZpcsNz/var/log/pcsd/pcsd.log)zpcs stonith sbd status --fullzpcs stonith sbd watchdog listzpcs stonith history show�.�versionz0.10.8zpcs property config --allzpcs property list --all�
pcs configZ
pcs_config)�tagszpcs quorum statusZpcs_quorum_statuszpcs status --fullZ
pcs_status)ZpolicyZpackage_managerZpkg_by_name�
add_copy_specr �joinr )r Zpcs_pkgZpcs_versionr r r � setup_pcs/ s
zPacemaker.setup_pcsc C s | � ddd� | � ddd� dS )z Clear password and api keys r �passw([^\s=]*)=\S+�passw\1=********z(api[_]?key[^\s=]*)=\S+z\1=********N�Zdo_cmd_output_subr r r r �postproc_crm_shellF s ��zPacemaker.postproc_crm_shellc C s | � ddd� dS )z Clear password r r! r"