CPU Monitoring problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
RunningWave
Posts: 6
Joined: Tue Dec 20, 2005 10:44 pm

CPU Monitoring problem

Post by RunningWave »

I've trying to monitor Fedora Core 4 server via ucd/net SNMP

The box is 2CPU Xeon x86_64 (with HypperThreading) which gives us 4 logical CPUs.

This seems to cause two problems with cacti:

- User CPU is reported as "na" I suspect this is because load is more than maximum which is set to 100

- System CPU is reported at 12% while I see it is 3% via vmstat which gives me the hint it is wrongly computed.

Proposal: I guess template need to be changed so maximum value is increased to 1600 or something, so it can work with more than once CPU. Alternative is to take number of CPUs into computation which might not be available via snmp.
gttommy
Posts: 25
Joined: Thu Oct 06, 2005 6:52 pm
Contact:

Post by gttommy »

Hi, are you also asking for help? If you are, you can use a script to run something like "vmstat 2 2 | tail -1" (delay required because initial output won't be accurate), until you get SNMP to work for you.
RunningWave
Posts: 6
Joined: Tue Dec 20, 2005 10:44 pm

Post by RunningWave »

gttommy wrote:Hi, are you also asking for help? If you are, you can use a script to run something like "vmstat 2 2 | tail -1" (delay required because initial output won't be accurate), until you get SNMP to work for you.
Thanks.

Well. If that is other host it would be more complicated. Of course I can do it via SSH but it is kind of slow and ugly.

I mainly looking to hear if someone can confirm this problem and if there is known work around for it
Burnout
Posts: 29
Joined: Mon Nov 28, 2005 8:06 am

Post by Burnout »

Please take a look @ my topic, it handles the same problem. http://forums.cacti.net/viewtopic.php?t=10761
RunningWave
Posts: 6
Joined: Tue Dec 20, 2005 10:44 pm

Post by RunningWave »

Thanks,

I personally just hacked templates so they allow up to 400 maximum.
It is better for me than creating different templates for different hosts.

I just think default template should be fixed this way so it does not breaks on dual CPUs and HTs

Showing over 100% of CPU usage is better than showing nan :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest