projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'collectd-4.10' into collectd-5.3
[collectd.git]
/
src
/
libvirt.c
diff --git
a/src/libvirt.c
b/src/libvirt.c
index
cfabaaa
..
87b71e6
100644
(file)
--- a/
src/libvirt.c
+++ b/
src/libvirt.c
@@
-441,6
+441,12
@@
lv_read (void)
continue;
}
+ if (info.state != VIR_DOMAIN_RUNNING)
+ {
+ /* only gather stats for running domains */
+ continue;
+ }
+
cpu_submit (info.cpuTime, domains[i], "virt_cpu_total");
memory_submit ((gauge_t) info.memory * 1024, domains[i]);