관리-도구
편집 파일: vhostmd.cpython-39.opt-1.pyc
a ����-�_g�����������������������@���s&���d�dl�mZmZ�G�dd��dee�ZdS�)�����)�Plugin�RedHatPluginc�������������������@���s$���e�Zd�ZdZdZdZdZdd��ZdS�)�Vhostmdz)vhostmd virtualization metrics collectionZvhostmd)ZsapZvirt�system)� virt-whatc�����������������C���s����|���d�d����}|sd�S�d|v�s2d|v�s2d|v�r�|��d�rL|�jddd��njd }|��|�s^d�S�|��|�D�]L}d |v�rh|���d�}|��d|��d ��}d|d�v�rh|�jd|��d�dd��qhd�S�)Nr����outputZvmwareZkvmZxenzvm-dump-metricsZvirt_metrics)Zsuggest_filenamez /sys/blockZ256Kr���zdd if=/dev/z bs=25 count=1Zmetricz bs=256k count=1)Zcollect_cmd_output� splitlinesZis_installedZadd_cmd_outputZ path_isdir�listdir�splitZexec_cmd)�selfZvwhatZsysblockZdisk�dev�ret��r����>/usr/lib/python3.9/site-packages/sos/report/plugins/vhostmd.py�setup���s(���� � �z Vhostmd.setupN)�__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesZpackagesr���r���r���r���r���r������s ���r���N)Zsos.report.pluginsr���r���r���r���r���r���r����<module> ���s���