File vhostmd-conf.patch of Package vhostmd
Index: vhostmd-0.4/vhostmd.xml
===================================================================
--- vhostmd-0.4.orig/vhostmd.xml
+++ vhostmd-0.4/vhostmd.xml
@@ -30,7 +30,6 @@ within the vm element.
<update_period>5</update_period>
<path>/usr/bin:/usr/sbin:/usr/share/vhostmd/scripts</path>
<transport>vbd</transport>
- <!-- <transport>xenstore</transport> -->
</globals>
<metrics>
<metric type="string" context="host">
@@ -84,12 +83,12 @@ within the vm element.
<metric type="real64" context="host">
<name>TotalCPUTime</name>
<action>virsh CONNECT dominfo 0 | sed 's/: */:/' | \
- gawk -F: '/CPU time/ {print $2;}'</action>
+ gawk -F: '/CPU time/ {print $2;}' | sed 's/s//'</action>
</metric>
<metric type="real64" context="vm">
<name>TotalCPUTime</name>
<action>virsh CONNECT dominfo NAME | sed 's/: */:/' | \
- gawk -F: '/CPU time/ {print $2;}'</action>
+ gawk -F: '/CPU time/ {print $2;}' | sed 's/s//'</action>
</metric>
</metrics>
</vhostmd>