a >h@s&ddlmZmZGdddeeZdS))Plugin RedHatPluginc@s$eZdZdZdZdZdZddZdS)Vhostmdz)vhostmd virtualization metrics collectionZvhostmd)ZsapZvirtsystem) virt-whatcCs|dd}|sdSd|vs2d|vs2d|vr|drL|jdddnjd }||s^dS||D]L}d |vrh|d }|d |d }d|dvrh|jd |dddqhdS)NroutputZvmwareZkvmZxenzvm-dump-metricsZ virt_metrics)Zsuggest_filenamez /sys/blockZ256Krz dd if=/dev/z bs=25 count=1Zmetricz bs=256k count=1)Zcollect_cmd_output splitlinesZ is_installedZadd_cmd_outputZ path_isdirlistdirsplitZexec_cmd)selfZvwhatZsysblockZdiskdevretr>/usr/lib/python3.9/site-packages/sos/report/plugins/vhostmd.pysetups(     z Vhostmd.setupN)__name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesZpackagesrrrrrr s rN)Zsos.report.pluginsrrrrrrr s