![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
o i��d� � @ 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�\}}|||<