Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/vhostmd.cpython-36.opt-1.pyc

3

�f
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s$eZdZdZdZd
ZdZdd�Zd	S)�Vhostmdz)vhostmd virtualization metrics collectionZvhostmd�sap�virt�system�	virt-whatcCs�|jd�dj�}|sdSd|ks2d|ks2d|kr�|jd�rL|jddd�nfd	}|j|�s^dSxR|j|�D]D}d
|krj|j�d}|jd|�}d
|dkrj|jd|dd�qjWdS)Nz	virt-what�outputZvmwareZkvmZxenzvm-dump-metricsZvirt_metrics)Zsuggest_filenamez
/sys/blockZ256Krzdd if=/dev/%s bs=25 count=1Zmetriczdd if=/dev/%s bs=256k count=1)Zcollect_cmd_output�
splitlinesZis_installedZadd_cmd_outputZ
path_isdir�listdir�splitZexec_cmd)�selfZvwhatZsysblockZdiskZdev�ret�r�/usr/lib/python3.6/vhostmd.py�setups&


z
Vhostmd.setupN)rrr)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>	s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists