mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-23 06:35:42 +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
|
while read key user nice system idle iowait irq softirq steal guest guest_nice
|
||||||
do
|
do
|
||||||
|
if [ "$guest_nice" == "" ]; then
|
||||||
|
guest_nice=0
|
||||||
|
fi
|
||||||
[ "$key" != "$1" ] && continue
|
[ "$key" != "$1" ] && continue
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
system.value $system
|
system.value $system
|
||||||
|
@ -98,6 +101,7 @@ irq.value $irq
|
||||||
softirq.value $softirq
|
softirq.value $softirq
|
||||||
steal.value $steal
|
steal.value $steal
|
||||||
guest.value $guest
|
guest.value $guest
|
||||||
|
guest_nice.value $guest_nice
|
||||||
EOF
|
EOF
|
||||||
done < /proc/stat
|
done < /proc/stat
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue