summaryrefslogtreecommitdiff
path: root/src/pmieconf/web/errors
blob: 5af87ffe3a453889c0a7cb0ae99372774282103e (plain)
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
53
54
55
56
57
58
59
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)