diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 | 
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 | 
| commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
| tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /qa/pconf/network/interface_bytes | |
| download | pcp-debian.tar.gz | |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'qa/pconf/network/interface_bytes')
| -rw-r--r-- | qa/pconf/network/interface_bytes | 52 | 
1 files changed, 52 insertions, 0 deletions
| diff --git a/qa/pconf/network/interface_bytes b/qa/pconf/network/interface_bytes new file mode 100644 index 0000000..5f75885 --- /dev/null +++ b/qa/pconf/network/interface_bytes @@ -0,0 +1,52 @@ +#pmieconf-rules 1 +# + +rule	network.interface_bytes +	default	= "$rule$" +	predicate = +"some_host ( +    some_inst ( +	network.interface.total.bytes $hosts$ $interfaces$ > +	    $threshold$ Kbytes/sec +    ) +)" +	enabled	= no +	version	= 1 +	help	= +"For at least one network interface, the average transfer rate (in +and/or out) exceeded the threshold during the last sample interval."; + +string	rule +	default	= "busy network interface (bytes)" +	modify	= no +	display	= no; + +double	threshold +	default	= 500 +	help	= +"Threshold in units of Kbytes (in or out) per second per interface. +A tolerable value depends on the type of network interface and +the packet size; some experimentation may be required to find an +accpetable threshold."; + +string	interfaces +	default	= "" +	help	= +"May be set to a list of network interfaces for which the rule will +be evaluated, as a subset of configured network interfaces.  Each +network interface should be enclosed in single quotes, prefixed by a +pound or hash (#) and multiple entries separated by white space, +e.g.  #'ec0' #'ec2' +To discover the names of the network interfaces, execute the +following command on the target host: +	  pminfo -f network.interface.total.bytes +the (double) quoted instance names are the required network interface +names. +This is most useful to remove the loopback, SLIP and PPP interfaces +from the rule evaluations."; + +string	action_expand +	default	= "%v:%i@%h" +	display	= no +	modify	= no; + | 
