diff options
Diffstat (limited to 'src/pmieconf/memory')
-rw-r--r-- | src/pmieconf/memory/exhausted | 81 | ||||
-rw-r--r-- | src/pmieconf/memory/localdefs | 29 | ||||
-rw-r--r-- | src/pmieconf/memory/swap_low | 78 |
3 files changed, 188 insertions, 0 deletions
diff --git a/src/pmieconf/memory/exhausted b/src/pmieconf/memory/exhausted new file mode 100644 index 0000000..9e430a6 --- /dev/null +++ b/src/pmieconf/memory/exhausted @@ -0,0 +1,81 @@ +#pmieconf-rules 1 +# --- DO NOT MODIFY THIS FILE --- see pmieconf(4) +# + +rule memory.exhausted + summary = "$rule$" + # first conjunct for %v, second is real condition... + predicate = +"some_host ( + ( avg_sample ( swap.pagesout $hosts$ @0..9 ) ) > 0 && + $pct$ %_sample swap.pagesout $hosts$ @0..9 >= $threshold$ +)" + enabled = yes + version = 1 + help = +"The system is swapping modified pages out of main memory to the +swap partitions, and has been doing this at the rate of at least +threshold pages swapped out per second for at least pct of the last +10 samples, ie. sustained page out activity."; + +double threshold + default = 5 + help = +"Threshold rate of pages swapped out per second."; + +percent pct + default = 30 + help = +"Percentage of the last 10 observations with at least threshold +pages swapped out per second required to make the rule true."; + +string rule + default = "Severe demand for real memory" + modify = no + display = no; + +string action_expand + default = "%vpgsout/s@%h" + modify = no + display = no; + +string email_expand + default = "host: %h recent average: %v pageouts/sec" + display = no + modify = no; + + +# Configuration info specific to non-PCP tools follows... +# + +# for SGI Embedded Support Partner integration: +string esp_type + default = "0x20004B" + display = no + modify = no; + +# for HP OpenView integration: +string ov_severity + display = no + default = "Critical"; + +# for CA/Unicenter TNG integration: +string tngfw_color + display = no + default = "Red"; + +# for EnlightenDSM integration: +string enln_test + default = memory.exhausted + display = no + modify = no; +string enln_units + default = pgsout/s + display = no + modify = no; +unsigned enln_severity + display = no + default = 5; + +# +# --- DO NOT MODIFY THIS FILE --- see pmieconf(4) diff --git a/src/pmieconf/memory/localdefs b/src/pmieconf/memory/localdefs new file mode 100644 index 0000000..a74d0c6 --- /dev/null +++ b/src/pmieconf/memory/localdefs @@ -0,0 +1,29 @@ +ALL_RULES = swap_low exhausted + +LOCAL_RULES = $(ALL_RULES) + +# Metrics missing from Mac OS X +# +# rule: swap_low +# swap.free -12357 Unknown metric name +# swap.length -12357 Unknown metric name +# +# rule: exhausted +# swap.pagesout -12357 Unknown metric name +# +ifeq ($(TARGET_OS), darwin) +LOCAL_RULES = +endif + +# Metrics missing from Solaris +# +# rule: exhausted +# swap.pagesout -12357 Unknown metric name +# +# rule: swap_low +# swap.free -12357 Unknown metric name +# swap.length -12357 Unknown metric name +# +ifeq ($(TARGET_OS), solaris) +LOCAL_RULES = +endif diff --git a/src/pmieconf/memory/swap_low b/src/pmieconf/memory/swap_low new file mode 100644 index 0000000..d69866d --- /dev/null +++ b/src/pmieconf/memory/swap_low @@ -0,0 +1,78 @@ +#pmieconf-rules 1 +# --- DO NOT MODIFY THIS FILE --- see pmieconf(4) +# +# Based on a rule originally developed by Kevin Wang at Silicon Graphics +# + +rule memory.swap_low + summary = "$rule$" + predicate = +"some_host ( + ( 100 * ( swap.free $hosts$ / swap.length $hosts$ ) ) + < $threshold$ + && swap.length $hosts$ > 0 // ensure swap in use +)" + enabled = no + version = 1 + help = +"There is only threshold percent swap space remaining - the system +may soon run out of virtual memory. Reduce the number and size of +the running programs or add more swap(1) space before it completely +runs out."; + +percent threshold + default = 10 + help = +"Threshold percent of total swap space which is free, in the range +0 (none free) to 100 (all swap is unused)."; + +string rule + default = "Low free swap space" + modify = no + display = no; + +string action_expand + default = "%v%free@%h" + modify = no + display = no; + +string email_expand + default = "host: %h free swap space: %v%" + display = no + modify = no; + + +# Configuration info specific to non-PCP tools follows... +# + +# for SGI Embedded Support Partner integration: +string esp_type + default = "0x20004C" + display = no + modify = no; + +# for HP OpenView integration: +string ov_severity + display = no + default = "Critical"; + +# for CA/Unicenter TNG integration: +string tngfw_color + display = no + default = "Red"; + +# for EnlightenDSM integration: +string enln_test + default = memory.swap_low + display = no + modify = no; +string enln_units + default = %free + display = no + modify = no; +unsigned enln_severity + display = no + default = 5; + +# +# --- DO NOT MODIFY THIS FILE --- see pmieconf(4) |