HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/vhostmd.cpython-39.opt-1.pyc
a

^��c��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s$eZdZdZdZdZdZdd�ZdS)�vhostmdz)vhostmd virtualization metrics collection)ZsapZvirt�system)�	virt-whatcCs�|�d�d��}|sdSd|vs2d|vs2d|vr�|�d�rL|jddd�nbd	}|�|�s^dS|�|�D]D}d
|vrh|��d}|�d|�}d
|dvrh|jd|dd�qhdS)Nr�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)�selfZvwZsysblockZdisk�dev�r�r�>/usr/lib/python3.9/site-packages/sos/report/plugins/vhostmd.py�setups(
�
�z
vhostmd.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>	s