summaryrefslogtreecommitdiff
path: root/src/pmieconf/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmieconf/web')
-rw-r--r--src/pmieconf/web/errors60
-rw-r--r--src/pmieconf/web/high_requests50
-rw-r--r--src/pmieconf/web/low_requests50
3 files changed, 160 insertions, 0 deletions
diff --git a/src/pmieconf/web/errors b/src/pmieconf/web/errors
new file mode 100644
index 0000000..5af87ff
--- /dev/null
+++ b/src/pmieconf/web/errors
@@ -0,0 +1,60 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+rule web.errors
+ default = "$rule$"
+ predicate =
+"some_host (
+ 100 * web.allservers.errors $hosts$
+ / web.allservers.requests.total $hosts$ > $threshold$
+ &&
+ web.allservers.requests.total > $min_requests$ count/minute
+)"
+ enabled = yes
+ version = 1
+ help =
+"Across all web servers on the target host, there is some web serving
+activity (at least min_requests per minute), but more than threshold
+percent of the requests are resulting in errors being reported in the
+activity logs.";
+
+string rule
+ default = "Excessive aggregate web server errors"
+ modify = no
+ display = no;
+
+percent threshold
+ default = 20
+ help =
+"Maximum acceptable percentage of web requests that may result in
+errors.";
+
+double min_requests
+ default = 2
+ help =
+"Minimum number of requests per minute before considering the error
+rate as significant.";
+
+string action_expand
+ default = "%v%errs@%h"
+ display = no
+ modify = no;
+
+string email_expand
+ default = "host: %h web server errors: %v% of all requests"
+ display = no
+ modify = no;
+
+
+# Configuration info specific to non-PCP tools follows...
+#
+
+# for SGI Embedded Support Partner integration:
+string esp_type
+ default = "0x2000A3"
+ display = no
+ modify = no;
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/web/high_requests b/src/pmieconf/web/high_requests
new file mode 100644
index 0000000..8e6e579
--- /dev/null
+++ b/src/pmieconf/web/high_requests
@@ -0,0 +1,50 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+rule web.high_requests
+ default = "$rule$"
+ predicate =
+"some_host (
+ web.allservers.requests.total $hosts$
+ > $threshold$ count/second
+)"
+ enabled = no
+ version = 1
+ help =
+"The aggregate request rate for all web servers on the target host is
+above threshold requests per second over the last sample interval.";
+
+string rule
+ default = "High aggregate rate of web requests"
+ display = no
+ modify = no;
+
+double threshold
+ default = 10
+ help =
+"Threshold web requests per second for all web servers on the target
+hosts.";
+
+string action_expand
+ default = "%vreqs@%h"
+ display = no
+ modify = no;
+
+string email_expand
+ default = "host: %h high web server request rate: %v/sec"
+ display = no
+ modify = no;
+
+
+# Configuration info specific to non-PCP tools follows...
+#
+
+# for SGI Embedded Support Partner integration:
+string esp_type
+ default = "0x2000A4"
+ display = no
+ modify = no;
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/web/low_requests b/src/pmieconf/web/low_requests
new file mode 100644
index 0000000..9850e5e
--- /dev/null
+++ b/src/pmieconf/web/low_requests
@@ -0,0 +1,50 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+rule web.low_requests
+ default = "$rule$"
+ predicate =
+"some_host (
+ 60 * web.allservers.requests.total $hosts$
+ < 60 * $threshold$ count/minute
+)"
+ enabled = no
+ version = 1
+ help =
+"The aggregate request rate for all web servers on the target host is
+below threshold requests per minute over the last sample interval.";
+
+string rule
+ default = "Low aggregate rate of web requests"
+ display = no
+ modify = no;
+
+double threshold
+ default = 1
+ help =
+"Threshold minimum web requests per minute for all web servers on the
+target hosts.";
+
+string action_expand
+ default = "%vreqs@%h"
+ display = no
+ modify = no;
+
+string email_expand
+ default = "host: %h low web server request rate: %v/min"
+ display = no
+ modify = no;
+
+
+# Configuration info specific to non-PCP tools follows...
+#
+
+# for SGI Embedded Support Partner integration:
+string esp_type
+ default = "0x2000A5"
+ display = no
+ modify = no;
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)