#pmieconf-rules 1
#

rule	cpu.system_mode
	default	= "$rule$"
	predicate =
"some_host (
    ( kernel.all.cpu.user $hosts$
	+ kernel.all.cpu.sys $hosts$
	    > hinv.ncpu $hosts$ * $busy$ / 100 ) &&
    ( kernel.all.cpu.sys $hosts$ /
	( kernel.all.cpu.user $hosts$
	    + kernel.all.cpu.sys $hosts$ )
	> $threshold$ / 100 )
)"
	enabled	= yes
	version	= 1
	help	=
"The average processor utilization over all CPUs was at least busy
percent during the last sample interval, and the ratio of system time
to busy time exceeded threshold percent.";

string	rule
	default	= "busy executing in system mode"
	modify	= no
	display	= no;

percent	busy
	default	= 75
	help	=
"Busy percentage for average CPU utilization, in the range 0 (idle)
to 100 (completely busy), independent of the number of CPUs.";

percent	threshold
	default	= 80
	help	=
"Threshold percentage for system time as a fraction of the non-idle
CPU time, in the range 0 (no system time) to 100 (all system time),
independent of the number of CPUs.";

string	action_expand
	default	= "%h"
	display	= no
	modify	= no;

