ó uÈÔec@s?ddlmZmZddlZdeefd„ƒYZdS(iÿÿÿÿ(tPlugint RedHatPluginNtvhostmdcBs5eZdZdZdddgZdgZd„ZRS(s.vhostmd virtualization metrics collection Rtsaptvirttsystems virt-whatcCs|jdƒdjƒ}|s#dSd|ksGd|ksGd|kr|jdƒrl|jdddƒqd }tjj|ƒsˆdSxvtj|ƒD]b}d |kr˜|jƒd }|jd |ƒ}d |dkrú|jd|ddƒqúq˜q˜WndS(Ns virt-whattoutputtvmwaretkvmtxensvm-dump-metricstsuggest_filenamet virt_metricss /sys/blockt256Kisdd if=/dev/%s bs=25 count=1tmetricsdd if=/dev/%s bs=256k count=1( texec_cmdt splitlinest is_installedtadd_cmd_outputtostpathtisdirtlistdirtsplit(tselftvwtsysblocktdisktdevtr((s7/usr/lib/python2.7/site-packages/sos/plugins/vhostmd.pytsetups$$    (t__name__t __module__t__doc__t plugin_nametprofilestpackagesR(((s7/usr/lib/python2.7/site-packages/sos/plugins/vhostmd.pyR s  (t sos.pluginsRRRR(((s7/usr/lib/python2.7/site-packages/sos/plugins/vhostmd.pyt s