Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : |
o ���b� � @ sD d dl mZmZmZmZ d dlZd dlmZ G dd� deee�ZdS )� )�Plugin�RedHatPlugin�DebianPlugin� PluginOptN)�gethostnamec @ sd e Zd ZdZdZdZdZdZedddd �ed ddd �gZ d Z d Zd ZdZ dd� Zdd� Zdd� Zd S )�PcpzPerformance Co-Pilot data�pcp)�system�performance)r z /etc/pcp.conf� pmmgrlogs�d zsize limit in MB of pmmgr logs)�default�desc� pmloggerfiles� z#number of pmlogger files to collectN� c C sD d}t �|�D ]\}}}|D ]}| �||�}|t j�|�7 }qq|S )Nr )�os�walk� path_join�path�getsize)�selfr � total_size�dirpath�dirnames� filenames�f�fp� r �8/usr/lib/python3/dist-packages/sos/report/plugins/pcp.py�get_size( s �zPcp.get_sizec C s� zt | jd�}|�� }|�� W n ty Y dS w i }|D ]"}|�d�r'qz|�� �d�\}}|||<