mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
Update cpu_
some fixes for guest_nice
This commit is contained in:
parent
5dcb693a27
commit
67525b295f
1 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,9 @@ emit_values()
|
|||
{
|
||||
while read key user nice system idle iowait irq softirq steal guest guest_nice
|
||||
do
|
||||
if [ "$guest_nice" == "" ]; then
|
||||
guest_nice=0
|
||||
fi
|
||||
[ "$key" != "$1" ] && continue
|
||||
cat <<EOF
|
||||
system.value $system
|
||||
|
@ -98,6 +101,7 @@ irq.value $irq
|
|||
softirq.value $softirq
|
||||
steal.value $steal
|
||||
guest.value $guest
|
||||
guest_nice.value $guest_nice
|
||||
EOF
|
||||
done < /proc/stat
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue