mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Merge remote branch 'pull/468'
This commit is contained in:
commit
83df6155fa
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