google-code-export / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
1 stars 0 forks source link

Extra value on /proc/stat cpu line causes WARNING: Result from CMD not valid. Partial Result: U #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

While migrating to a new server i installed the 1.1.8 script and was surprised 
to see the CPU graph not updating with Cacti showing the dreaded "WARNING: 
Result from CMD not valid. Partial Result: U"

After a few hours searching for the culprit, i finally noticed that the 
proc/stat on the old computer gave:
cpu  103321832 6474701 12085750 2576050116 28832142 572337 1621490 0 0
while the new one gave:
cpu  550142 123224 154948 149243418 793379 52 17924 0 0 0

Noticed the extra 0 at the end ?

adding a line to the cpu_types array solved the issue
   $cpu_types = array(
      'STAT_CPU_user',
      'STAT_CPU_nice',
      'STAT_CPU_system',
      'STAT_CPU_idle',
      'STAT_CPU_iowait',
      'STAT_CPU_irq',
      'STAT_CPU_softirq',
      'STAT_CPU_steal',
      'STAT_CPU_guest',
      'STAT_CPU_unknw1',
   );

Now i'm investigating this extra stat i did not know of.

Original issue reported on code.google.com by olefeb...@gmail.com on 5 Feb 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Ok it's "guest_nice" value which my old 32bit 2.6 kernel did not feature

Original comment by olefeb...@gmail.com on 5 Feb 2011 at 5:46

GoogleCodeExporter commented 9 years ago
Marking for migration / fixing in a new project.

Original comment by baron.schwartz on 4 Jan 2012 at 6:21

GoogleCodeExporter commented 9 years ago
Fixed in new project.

Original comment by baron.schwartz on 25 Jan 2012 at 2:00