/usr/share/pcp/examples/pmie/NETWORK is in pcp 3.9.10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | //
// Some Common Performance Monitoring Scenarios
//
// The Network Group
//
// replace with your hosts
HOSTS = ":localhost :foo";
// replace this with your e-mail address
MINDER = "root@localhost";
// 10 second rulesets in this group
delta = 10 sec; // numbers are diff than strings
DELTA_STR = "10 seconds"; // strings are diff than numbers
//
// Report when some interface has seen more than 15 errors per second
// on at least 3 of the last 4 observations
//
// Rule donated by Kevin Wang at Silicon Graphics
//
some_host some_inst 75%_sample (
network.interface.total.errors $HOSTS @0..3 > 15
) -> print 5 min "high network interface errors" "%h[%i] %v errors/sec ";
|