2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Update cpu_

fixed /proc/stat parsing issues
This commit is contained in:
rkarlsba 2014-03-09 19:25:57 +01:00
parent ff1c67d59c
commit a3d90c8fb0

View File

@ -59,6 +59,11 @@ guest.draw STACK
guest.min 0 guest.min 0
guest.type DERIVE guest.type DERIVE
guest.info The time spent running a virtual CPU for guest operating systems under the control of the Linux kernel. guest.info The time spent running a virtual CPU for guest operating systems under the control of the Linux kernel.
guest_nice.label guest
guest_nice.draw STACK
guest_nice.min 0
guest_nice.type DERIVE
guest_nice.info The time spent running a virtual CPU for niced guest operating systems under the control of the Linux kernel.
EOF EOF
} }
@ -80,7 +85,7 @@ fi
emit_values() emit_values()
{ {
while read key system user nice idle iowait irq softirq steal guest unused while read key user nice system idle iowait irq softirq steal guest guest_nice
do do
[ "$key" != "$1" ] && continue [ "$key" != "$1" ] && continue
cat <<EOF cat <<EOF