blob: 89584e5ca66e40cb1e6ef1549c84c9fe4527aa5a (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
QA output created by 1045
=== check unsupported pmie config version
pmieconf: error - unknown version number in /tmp/[SEQ-PID].pmie: "0" (expected 1)
status=0
=== check that unneeded changes for unsupported versions are dumped
status=0
status=0
// pmieconf-pmie 1 ./pconf
// 1 filesys.buffer_cache threshold = 81.5%
// 1 filesys.buffer_cache hosts = "moomba wobbly"
// 1 filesys.buffer_cache sss_action = no
// 1 filesys.buffer_cache user_command = "pmpost $rule$^ %v@%h"
// 1 filesys.buffer_cache holdoff = 20
// 1 filesys.capacity delta = 60
// 1 network.interface_bytes holdoff = 30
// 1 network.tcp_dropped_conns holdoff = 30
// 1 network.tcp_retransmit holdoff = 30
// end
//
// --- START GENERATED SECTION (do not change this section) ---
// generated by pmieconf on: [DATE]
//
// 1 cpu.load_average
delta = 120;
cpu.load_average =
some_host (
kernel.all.load #'1 minute'
> hinv.ncpu * 1.5
) -> shell 15 "/usr/pcp/bin/pmpost high 1-minute load average" " %v@%h";
// 1 cpu.system_mode
delta = 120;
cpu.system_mode =
some_host (
( kernel.all.cpu.user
+ kernel.all.cpu.sys
> hinv.ncpu * 75 / 100 ) &&
( kernel.all.cpu.sys /
( kernel.all.cpu.user
+ kernel.all.cpu.sys )
> 80 / 100 )
) -> shell 15 "/usr/pcp/bin/pmpost busy executing in system mode" " %h";
// 1 filesys.capacity
delta = 60;
filesys.capacity =
some_host (
some_inst (
( 100 * filesys.used >
95 * filesys.capacity ) &&
rate filesys.used > 0
)
) -> shell 15 "/usr/pcp/bin/pmpost imminent file system full" " %i@%h";
// 1 memory.exhausted
delta = 120;
memory.exhausted =
some_host (30 %_sample swap.pagesout @0..9 > 0) -> shell 15 "/usr/pcp/bin/pmpost chronic main memory exhaustion" " %h";
// --- END GENERATED SECTION (changes below will be preserved) ---
=== check that changes for unsupported versions are moved to end
status=0
status=0
// pmieconf-pmie 1 ./pconf
// 1 filesys.buffer_cache threshold = 81.5%
// 1 filesys.buffer_cache hosts = "moomba wobbly"
// 1 filesys.buffer_cache sss_action = yes
// 1 filesys.buffer_cache user_command = "pmpost $rule$^ %v@%h"
// 1 filesys.buffer_cache holdoff = 20
// 1 filesys.capacity delta = 60
// 1 network.interface_bytes holdoff = 40
// 1 network.tcp_dropped_conns holdoff = 30
// 1 network.tcp_retransmit holdoff = 30
// end
//
// --- START GENERATED SECTION (do not change this section) ---
// generated by pmieconf on: [DATE]
//
// 1 cpu.load_average
delta = 120;
cpu.load_average =
some_host (
kernel.all.load #'1 minute'
> hinv.ncpu * 1.5
) -> shell 15 "/usr/pcp/bin/pmpost high 1-minute load average" " %v@%h";
// 1 cpu.system_mode
delta = 120;
cpu.system_mode =
some_host (
( kernel.all.cpu.user
+ kernel.all.cpu.sys
> hinv.ncpu * 75 / 100 ) &&
( kernel.all.cpu.sys /
( kernel.all.cpu.user
+ kernel.all.cpu.sys )
> 80 / 100 )
) -> shell 15 "/usr/pcp/bin/pmpost busy executing in system mode" " %h";
// 1 filesys.capacity
delta = 60;
filesys.capacity =
some_host (
some_inst (
( 100 * filesys.used >
95 * filesys.capacity ) &&
rate filesys.used > 0
)
) -> shell 15 "/usr/pcp/bin/pmpost imminent file system full" " %i@%h";
// 1 memory.exhausted
delta = 120;
memory.exhausted =
some_host (30 %_sample swap.pagesout @0..9 > 0) -> shell 15 "/usr/pcp/bin/pmpost chronic main memory exhaustion" " %h";
// --- END GENERATED SECTION (changes below will be preserved) ---
// // 2 filesys.buffer_cache (deprecated, rule version no longer supported)
// sample.drift;
//
// sample.double.one;
=== check that changes for unsupported rules are moved to end
status=0
status=0
// pmieconf-pmie 1 ./pconf
// 1 filesys.buffer_cache threshold = 81.5%
// 1 filesys.buffer_cache hosts = "moomba wobbly"
// 1 filesys.buffer_cache sss_action = yes
// 1 filesys.buffer_cache user_command = "pmpost $rule$^ %v@%h"
// 1 filesys.buffer_cache holdoff = 120
// 1 filesys.capacity delta = 60
// 1 network.interface_bytes holdoff = 30
// 1 network.tcp_dropped_conns holdoff = 30
// 1 network.tcp_retransmit holdoff = 30
// end
//
// --- START GENERATED SECTION (do not change this section) ---
// generated by pmieconf on: [DATE]
//
// 1 cpu.system_mode
delta = 120;
cpu.system_mode =
some_host (
( kernel.all.cpu.user
+ kernel.all.cpu.sys
> hinv.ncpu * 75 / 100 ) &&
( kernel.all.cpu.sys /
( kernel.all.cpu.user
+ kernel.all.cpu.sys )
> 80 / 100 )
) -> shell 15 "/usr/pcp/bin/pmpost busy executing in system mode" " %h";
// 1 filesys.capacity
delta = 60;
filesys.capacity =
some_host (
some_inst (
( 100 * filesys.used >
95 * filesys.capacity ) &&
rate filesys.used > 0
)
) -> shell 15 "/usr/pcp/bin/pmpost imminent file system full" " %i@%h";
// 1 memory.exhausted
delta = 120;
memory.exhausted =
some_host (30 %_sample swap.pagesout @0..9 > 0) -> shell 15 "/usr/pcp/bin/pmpost chronic main memory exhaustion" " %h";
// --- END GENERATED SECTION (changes below will be preserved) ---
// // 1 cpu.load_average (deprecated, rule definition no longer exists)
// sample.float.ten;
//
// // 2 filesys.buffer_cache (deprecated, rule version no longer supported)
// sample.drift;
//
// sample.double.one;
|