403Webshell
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 :  /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/etcd.cpython-39.pyc
a

ܓ�i��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s4eZdZdZdZdZdZdZdZdZ	dZ
dd	�Zd
S)�Etcda�The etcd plugin collects information from the etcd key-value store. It
    is primarily used by Kubernetes/OpenShift clusters and is often run inside
    a container within the cluster.

    Collections will default to executing within an `etcdctl` container, if one
    is present, and only execute on the host if such a container is not
    currently running. The `etcdctl` name preference is adopted from OpenShift
    Container Platform deployments.

    This plugin is written for etcd v3 and later.
    zetcd plugin�etcd)r)�	container�system�servicesZcluster)�/etc/etcd/etcd.conf)ZetcdctlrcCs�d}|jD]}|�|�r
|}q"q
|�ddi�|�ddg�|jd|dd�|jd|d	�gd
�}|jdd�|D�|d	�dS)
Nr	Z	etcd_confz/etc/etcd/caz/etc/etcd/*.keyz/var/lib/etcd/T)r�	recursivez	/etc/etcd)r)�versionzmember listz
alarm listzendpoint statuszendpoint healthcSsg|]}d|���qS)zetcdctl �)�.0�subrr�;/usr/lib/python3.9/site-packages/sos/report/plugins/etcd.py�
<listcomp>C�zEtcd.setup.<locals>.<listcomp>)�
containersZget_container_by_nameZ
add_file_tagsZadd_forbidden_pathZadd_dir_listingZ
add_copy_specZadd_cmd_output)�selfZetcd_conZconZsubcmdsrrr�setup%s*

����z
Etcd.setupN)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZpackagesZprofiles�filesrrrrrrrrsrN)Zsos.report.pluginsrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit