summaryrefslogtreecommitdiff
path: root/qa/pconf/network/tcp_dropped_conns
diff options
context:
space:
mode:
Diffstat (limited to 'qa/pconf/network/tcp_dropped_conns')
-rw-r--r--qa/pconf/network/tcp_dropped_conns42
1 files changed, 42 insertions, 0 deletions
diff --git a/qa/pconf/network/tcp_dropped_conns b/qa/pconf/network/tcp_dropped_conns
new file mode 100644
index 0000000..4b03184
--- /dev/null
+++ b/qa/pconf/network/tcp_dropped_conns
@@ -0,0 +1,42 @@
+#pmieconf-rules 1
+#
+
+rule network.tcp_dropped_conns
+ default = "$rule$"
+ predicate =
+"some_host (
+ ( 100 * ( network.tcp.drops $hosts$ +
+ network.tcp.conndrops $hosts$ +
+ network.tcp.timeoutdrop $hosts$ ) /
+ network.tcp.connects $hosts$ ) > $threshold$ &&
+ network.tcp.connects $hosts$ > 20 count/minute
+)"
+ enabled = no
+ version = 1
+ help =
+"There is some TCP connection activity (at least 20 connections
+per minute) and the average ratio of TCP dropped connections to
+successful connections exceeds threshold percent during the last
+sample interval.
+High drop rates indicate either network congestion (check the packet
+retransmission rate) or an application like a Web browser that is
+prone to terminating TCP connections prematurely, perhaps due to
+sluggish response or user impatience.";
+
+string rule
+ default = "high number of dropped TCP connections"
+ modify = no
+ display = no;
+
+percent threshold
+ default = 20
+ help =
+"Maximum acceptable percentage of dropped TCP connections per new
+TCP connection, in the range 0 (not expecting any connections to be
+dropped) to 100 (expect most connections to be dropped).";
+
+string action_expand
+ default = "%v%@%h"
+ display = no
+ modify = no;
+