%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/sar.cpython-312.pyc |
� i��d� � � � d dl mZmZmZmZmZ d dlZd dlZd dlmZ G d� de� Z G d� de e� Z G d� d e ee� Zy) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin� PluginOptN)�datetimec �B � e Zd ZdZdZdZdZdZdZ e ddd � � gZ d� Zy) �SaraN The sar plugin is designed to collect system performance data as recorded by sysstat. The raw binary data, i.e. the 'saX' files, will be collected and for files a week old or younger, this plugin will capture human-readable conversions of those files provided by the 'sar' command locally available, if the local sysstat installation has not already created a converted copy (e.g. for the current day-of data being collected at the time of report generation). Using the 'all_sar' plugin option will not only cause the plugin to capture _all_ 'saX' files present on the host, but further perform the 'sar' conversion on all files, not just those produced within the last week. Converted 'sar' files will be written to the sos_commands/sar/, and not to the /var/log/ path that sysstat writes to. Note that this conversion is done because it is unlikely that the same version of sysstat that produces the 'saX' files will be the same version available on a given analyst's workstation, and this conversion is version sensitive. zSystem Activity Reporter�sar)�system�performance)�sysstat�/var/log/sa�all_sarFz"gather all system activity records)�default�descc �Z � | j | j | j d� | j d� rdnd d�� | j | j � }t j d� }|D ]� }|j |� s�| j | j |� }d|d d z }||vr�| j d� s[ t j |� j }t j � t j |� z }|j d kD r�� d |z } | j% | |� d|z } | j% | d|z � �� y # t $ r! | j d| j z � Y y w xY w# t"