403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/sos/report/plugins/__pycache__/etcd.cpython-312.pyc
�

i��di��,�ddlmZmZGd�dee�Zy)�)�Plugin�RedHatPluginc�2�eZdZdZdZdZdZdZdZdZ	dZ
d�Zy)	�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)r)�	container�system�services�cluster)�/etc/etcd/etcd.conf)�etcdctlrc�F�d}|jD]}|j|�s�|}n|jddi�|jddg�|j	d|��|jd|��gd�}|j	|D�cgc]}d	|����	c}|��ycc}w)
Nr�	etcd_confz/etc/etcd/caz/etc/etcd/*.keyzls -lR /var/lib/etcd/)rz	/etc/etcd)�versionzmember listz
alarm listzendpoint statuszendpoint healthzetcdctl )�
containers�get_container_by_name�
add_file_tags�add_forbidden_path�add_cmd_output�
add_copy_spec)�self�etcd_con�con�subcmds�subs     �9/usr/lib/python3/dist-packages/sos/report/plugins/etcd.py�setupz
etcd.setup%s������?�?�	�C��)�)�#�.����	�
	
���!�;�
�	�	
�����!
�	�
	
���3�x��H����;�(��;�
��	
���)0�1�#�x��u�
�1��	�	
��1s�BN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�packages�profiles�filesrr	r��rrrs1��
��J��K��H�=�H�$�E�$�J��H�
r'rN)�sos.report.pluginsrrrr&r'r�<module>r)s��4�5
�6�<�5
r'

Youez - 2016 - github.com/yon3zu
LinuXploit