Unless sched.h is included, collectd's cpu module falls back to using local definitions of CPUSTATES and related macros which no longer match ones used by the kernel. Index: src/cpu.c --- src/cpu.c.orig +++ src/cpu.c @@ -63,6 +63,10 @@ #include #endif +#ifdef HAVE_SYS_SCHED_H +#include +#endif + #ifdef HAVE_SYS_DKSTAT_H /* implies BSD variant */ #include