Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
dmthin pmieconf scripts #47
Merged
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,45 @@ | ||
| +#pmieconf-rules 1 | ||
| +# --- DO NOT MODIFY THIS FILE --- see pmieconf(1) | ||
| + | ||
| +rule dmthin.data_high_util | ||
| + summary = "$rule$" | ||
| + enumerate = hosts | ||
| + predicate = | ||
| +"some_host ( | ||
| + some_inst ( | ||
| + ( 100 * dmthin.pool.data.used $hosts$ / dmthin.pool.data.total $hosts$ ) > $threshold$ | ||
| + ) | ||
| +)" | ||
| + enabled = no | ||
| + version = 1 | ||
| + help = | ||
| +"dmthin pool data utilization percent exceeded threshold percent of total size."; | ||
| + | ||
| +string rule | ||
| + default = "dmthin pool data is filling up" | ||
| + modify = no | ||
| + display = no; | ||
| + | ||
| +percent threshold | ||
| + default = 95 | ||
| + help = | ||
| +"The threshold of dmthin pool fullness expressed as a percentage, | ||
| +usually in the range of 80 to 99. "; | ||
| + | ||
| +string action_expand | ||
| + default = "%v%used [%i]@%h" | ||
| + display = no | ||
| + modify = no; | ||
| + | ||
| +string email_expand | ||
| + default = "host: %h pool: %i data utilization: %v%" | ||
| + display = no | ||
| + modify = no; | ||
| + | ||
| +string delta | ||
| + default = "10 mins" | ||
| + help = | ||
| +"Sample interval between evaluations of this rule."; | ||
| + | ||
| +# | ||
| +# --- DO NOT MODIFY THIS FILE --- see pmieconf(1) |
| @@ -0,0 +1,45 @@ | ||
| +#pmieconf-rules 1 | ||
| +# --- DO NOT MODIFY THIS FILE --- see pmieconf(1) | ||
| + | ||
| +rule dmthin.metadata_high_util | ||
| + summary = "$rule$" | ||
| + enumerate = hosts | ||
| + predicate = | ||
| +"some_host ( | ||
| + some_inst ( | ||
| + ( 100 * dmthin.pool.metadata.used $hosts$ / dmthin.pool.metadata.total $hosts$ ) > $threshold$ | ||
| + ) | ||
| +)" | ||
| + enabled = no | ||
| + version = 1 | ||
| + help = | ||
| +"dmthin pool metadata utilization percent exceeded threshold percent of total size."; | ||
| + | ||
| +string rule | ||
| + default = "dmthin pool metadata is filling up" | ||
| + modify = no | ||
| + display = no; | ||
| + | ||
| +percent threshold | ||
| + default = 80 | ||
| + help = | ||
| +"The threshold of dmthin pool fullness expressed as a percentage, | ||
| +usually in the range of 50 to 99. "; | ||
| + | ||
| +string action_expand | ||
| + default = "%v%used [%i]@%h" | ||
| + display = no | ||
| + modify = no; | ||
| + | ||
| +string email_expand | ||
| + default = "host: %h pool: %i metadata utilization: %v%" | ||
| + display = no | ||
| + modify = no; | ||
| + | ||
| +string delta | ||
| + default = "10 mins" | ||
| + help = | ||
| +"Sample interval between evaluations of this rule."; | ||
| + | ||
| +# | ||
| +# --- DO NOT MODIFY THIS FILE --- see pmieconf(1) |