Munin CPU
New costumer here.
I'm using my linode for a month and yesterday after full testing it went live
I have a question about munin if you can answer.
I'm using ubuntu 8.10 32 bits and munin stats for CPU are wrong:
~~
Anyone knows why?
Thanks~~
26 Replies
@nfn:
Anyone knows why?
What does top or htop show?
James
munin shows the CPU on a scale from zero to 400% making it hard to see anything meaningful.
Problem is that the linode runs with 4 processors so my guess is that munin simply adds up all the individual percentages (htop shows 4 individual processor indicators as well).
Your munin graph is showing 5-10% CPU utilization for the day, which is normal for websites that don't get hit too hard.
In fact, you should be alarmed if you see anything visually meaningful on that graph, because in that case something is probably consuming more CPU than it should.
@nfn:
… I think the problem can be the scale.
No problem, then. The peak CPU scale is correctly shown as 400%, since your Linode has 4 CPUs, and CPU usage that occasionally reaches - but does not stay - as high as 400% is generally OK at Linode. My CPU usage can sustain 100% or 200% for several hours if someone is surface fitting a large data set, although that does not happen very often.
~~
James
http;//zunzun.com~~
~~http://i44.tinypic.com/2iidhk2.png
(not a linode, I wanted something with visible CPU usage!). As you can see, it's an area graph that fills the whole are up to 100*cpus % with system time stacked above idle time stacked above user time.
The "NaN" in the "Idle" line on nfn's graph above is the problem, but from here it's a matter of looking at the munin-node "cpu" plugin to see why it's failing. Here's the output of one of mine:
# /usr/share/munin/plugins/cpu
user.value 32245294
nice.value 1187
system.value 13282284
idle.value 2151614388
iowait.value 2934277
irq.value 1153
softirq.value 1728224
What do you get when you run that command manually?~~
user.value 240019
nice.value 151044
system.value 85593
idle.value 188229895
iowait.value 156121
irq.value 0
softirq.value 1083
@mendel:
No, that graph isn't right, because Munin graphs idle time too.
I also see the idle time is not graphed properly by munin 1.2.6 (Ubuntu 8.10 default version) on a Linode with the most recent kernel version, see:
The most recent development version of munin apparently works properly.
James
I'm using 2.6.28-linode15 kernel and munin 1.2.6.
Should I downgrade to a lower kernel version? wich one?
@nfn:
Should I downgrade to a lower kernel version?
The problem is in the Ubuntu default version of munin, and only affects the display of idle time - it's not colored most of the time. Everything else is just fine. No need to change kernel versions.
James
@nfn:
But how am I able to get this to work?
It works now - any part of the graph that is not colored is idle time.
James
my munin graphs show up just fine with currently about 390 for idle (4 processors)

The CPU script on mine:
~~http://hoopycat.com/~rtucker/tmp/framboise-cpu-day.png
The CPU script from yours:
~~
Might want to open a bug report with the Munin folks… weird, that. (Secretly, I kinda like it without the idle, but that's just me