severity 717287 normal # >3.10 will be the default kernel, so this plugin will break completly
Hi,
/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state is gone in kernels
>=3.10, what can the cpuspeed plugin use instead?
cheers,
Holger
For reference, this is the plugin code:
for c in /sys/devices/system/cpu/cpu[0-9]*; do
N=${c##*/cpu}
echo "cpu$N.label CPU $N"
echo "cpu$N.type DERIVE"
if [ -r $c/cpufreq/cpuinfo_max_freq ]; then
MAXHZ=$(cat $c/cpufreq/cpuinfo_max_freq)
# Adding 10% to $MAXHZ, to cope with polling jitters
# See bug D#615957
MAXHZ=$(( $MAXHZ + $MAXHZ / 10 ))
echo "cpu$N.max $MAXHZ"
if [ "$scaleto100" = "yes" ]; then
echo "cpu$N.cdef cpu$N,1000,*,$MAXHZ,/"
else
echo "cpu$N.cdef cpu$N,1000,*"
fi
fi
if [ -r $c/cpufreq/cpuinfo_min_freq ]; then
MINHZ=$(cat $c/cpufreq/cpuinfo_min_freq)
echo "cpu$N.min $MINHZ"
fi
print_warning "cpu$N"
print_critical "cpu$N"
done
signature.asc
Description: This is a digitally signed message part.

