AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ceph_mgr.cpython-310.pyc
o

���bR
�@s4ddlmZmZmZddlZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPluginNc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�CephMGRzCEPH mgr�ceph_mgr)�storage�virt�	container)z
ceph-mgr.*cCst�d�rdSdS)Nz/var/lib/ceph/mgr/*/*TF)�glob)�self�r�=/usr/lib/python3/dist-packages/sos/report/plugins/ceph_mgr.py�
check_enabledszCephMGR.check_enabledc
s|�ddi�|�gd��|�gd��gd��|�gd��g}|�d�}|dd	krg|d
��D]3}|��}|rf|d	�d�rfz|�d�}|�	d
||d�Wq3t
tfye|�d|�Yq3wq3z|�
d�d	d}Wnty}d}Ynw|j�fdd�|D�|d�dS)Nz/var/log/ceph/ceph-mgr.*.log�ceph_mgr_log)z/var/log/ceph/ceph-mgr*.logz/var/lib/ceph/mgr/z/var/lib/ceph/bootstrap-mgr/z/run/ceph/ceph-mgr*)zceph balancer statuszceph orch host lszceph orch device lszceph orch ls --exportzceph orch pszceph orch status --detailzceph orch upgrade statuszceph log last cephadm)zconfig diffzconfig show�
dump_cache�
dump_mempools�dump_osd_network�mds_requests�mds_sessions�objecter_requestsrrz	perf dumpzperf histogram dumpzperf histogram schemazperf schema�status�version)z/etc/ceph/*keyring*z/var/lib/ceph/*keyring*z/var/lib/ceph/*/*keyring*z/var/lib/ceph/*/*/*keyring*z/var/lib/ceph/osdz/var/lib/ceph/monz/var/lib/ceph/tmp/*mnt*z/etc/ceph/*bindpass*zps -u ceph -o argsrr�outputzceph-mgrz--idzmgr.%s�zcould not find ceph-mgr id: %sz	ceph-mgr*cs"g|]
}�D]}d||f�qqS)zceph daemon %s %sr)�.0�mgrid�cmd��	ceph_cmdsrr
�
<listcomp>gs����z!CephMGR.setup.<locals>.<listcomp>)r	)�
add_file_tags�
add_copy_spec�add_cmd_output�add_forbidden_path�exec_cmd�
splitlines�split�endswith�index�append�
IndexError�
ValueError�log_warn�get_all_containers_by_regex�	Exception)r�mgr_ids�out�procs�proc�id_index�cnamerrr
�setups<�

����
�z
CephMGR.setupN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�
containersrr5rrrr
r
sr)�sos.report.pluginsrrrr
rrrrr
�<module>s

Anon7 - 2022
AnonSec Team