File: interface_bytes

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (52 lines) | stat: -rw-r--r-- 1,439 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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;