Skip to content

Commit 5305cdb

Browse files
rasrivas-redhatnatoscott
authored andcommitted
New pmieconf rule filesys vfs_rules support on ansible
Signed-off-by: rasrivas-redhat <[email protected]>
1 parent 789a699 commit 5305cdb

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

roles/pcp/files/filesys/vfs_files

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#pmieconf-rules 1
2+
# --- DO NOT MODIFY THIS FILE --- see pmieconf(5)
3+
4+
rule filesys.vfs_files
5+
summary = "$rule$"
6+
enumerate = hosts
7+
predicate =
8+
"some_host (
9+
vfs.files.count $hosts$ > 0 && vfs.files.max $hosts$ > 0 &&
10+
100 * ( vfs.files.count $hosts$ / vfs.files.max $hosts$ ) > $threshold$
11+
)"
12+
enabled = yes
13+
version = 1
14+
help =
15+
"Number of allocated file handles (open file descriptors) is at or
16+
above a threshold percentage of the total available (maximum kernel
17+
enforced limit).";
18+
19+
percent threshold
20+
default = 90
21+
help =
22+
"The threshold of open file handles that has been allocated compared
23+
to the maximum number available, expressed as a percentage.";
24+
25+
string rule
26+
default = "Approaching open file descriptor limit"
27+
modify = no
28+
display = no;
29+
30+
string action_expand
31+
default = %vopen@%h
32+
display = yes
33+
modify = no;
34+
35+
string email_expand
36+
default = "host: %h open files: %v"
37+
display = no
38+
modify = no;
39+
40+
#
41+
# --- DO NOT MODIFY THIS FILE --- see pmieconf(5)
42+

roles/pcp/vars/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ __pcp_pmieconf_rules:
3434
- network/tcpqfulldrops
3535
- power/thermal_throttle
3636
- zeroconf/all_threads
37+
- filesys/vfs_rules

0 commit comments

Comments
 (0)