#pmieconf-rules 1
# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
# $Id: slow_response,v 1.1 1999/04/28 10:39:51 kenmcd Exp $
#
# Based on a performance analysis rule originally developed
# by Adrian Cockroft (Adrian.Cockroft@sun.com)
# 

rule	rpc.slow_response
	default	= "$rule$"
	predicate =
"some_host (
    100 * rpc.client.timeout $hosts$
	    / rpc.client.calls $hosts$ > $threshold$
    && rpc.client.badxid $hosts$
	>= rpc.client.timeout $hosts$ * 0.9
    && rpc.client.timeout $hosts$ * 1.1
	>= rpc.client.badxid $hosts$
    && rpc.client.calls $hosts$ > $min_calls$
)"
	enabled	= yes
	version	= 1
	help	=
"More than threshold percent of sent client remote procedure call
(RPC) packets are timing out before the server responds and the
number of timeouts is roughly equivalent to the number of duplicate
packets being received.
The network file system (NFS) utilizes the RPC protocol for its
client-server communication needs.  This high timeout rate when
sending RPC packets may be because the NFS server is processing
duplicate requests from the clients which were sent after the
original requests timed out.";

string	rule
	default	= "RPC server response is slow"
	modify	= no
	display	= no;

percent	threshold
	default	= 5
	help	=
"Threshold percent of total remote procedure calls which are timing out,
in the range 0 (none) to 100 (all)."; 

double	min_calls
	default	= 10
	help	=
"Minimum count of RPC calls per second before the rule can become
true.";

string	action_expand
	default	= "%v%timeout@%h"
	display	= no
	modify	= no;

string	email_expand
	default	= "host: %h slow RPC server response: %vtimeouts/sec"
	display	= no
	modify	= no;


# Configuration info specific to non-PCP tools follows...
# 

# for SGI Embedded Support Partner integration:
string	esp_type
	default	= "0x200055"
	display	= no
	modify	= no;

# 
# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
