diff --git a/xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree.pm b/xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree.pm new file mode 100644 index 000000000..8101387fe --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree.pm @@ -0,0 +1,13 @@ +#!/usr/bin/perl + +$RES::Condition{'AnyNodeRealMemFree'} = { + Name => q(AnyNodeRealMemFree), + ResourceClass => q(IBM.Host), + EventExpression => q(PctRealMemFree < 5), + EventDescription => q(An event is generated when the percentage of real memory that are free falls below 5 percent.), + RearmExpression => q(PctRealMemFree > 10), + RearmDescription => q(The event will be rearmed to be generated again after the percentage of the real free memory exceeds 10 percent.), + ManagementScope => q(4), + Severity => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree_H.pm b/xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree_H.pm new file mode 100644 index 000000000..f93301d52 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree_H.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +$RES::Condition{'AnyNodeRealMemFree_H'} = { + Name => q(AnyNodeRealMemFree_H), + ResourceClass => q(IBM.Condition), + EventExpression => q(LastEvent.Occurred==1 && LastEvent.ErrNum==0 && (LastEvent.EventFlags & 0x0233) == 0), + RearmExpression => q(LastEvent.Occurred==1 && LastEvent.ErrNum==0 && (LastEvent.EventFlags & 3) ==1), + EventDescription => q(This condition collects all the events from the condition AnyNodeRealMemFree on the service nodes. The AnyNodeRealMemFree condition monitors the compute nodes. An event is generated when the percentage of real memory that are free falls below 5 percent), + RearmDescription => q(An rearm event will be generated after the percentage of the real free memory on the compute nodes exceeds 10 percent.), + SelectionString => q(Name="AnyNodeRealMemFree"), + ManagementScope => q(4), + Severity => q(1), + NoToggleExprFlag => q(1), +}; +1; diff --git a/xCAT-rmc/resources/sn/IBM.Condition/AnyNodeRealMemFree.pm b/xCAT-rmc/resources/sn/IBM.Condition/AnyNodeRealMemFree.pm new file mode 100644 index 000000000..8101387fe --- /dev/null +++ b/xCAT-rmc/resources/sn/IBM.Condition/AnyNodeRealMemFree.pm @@ -0,0 +1,13 @@ +#!/usr/bin/perl + +$RES::Condition{'AnyNodeRealMemFree'} = { + Name => q(AnyNodeRealMemFree), + ResourceClass => q(IBM.Host), + EventExpression => q(PctRealMemFree < 5), + EventDescription => q(An event is generated when the percentage of real memory that are free falls below 5 percent.), + RearmExpression => q(PctRealMemFree > 10), + RearmDescription => q(The event will be rearmed to be generated again after the percentage of the real free memory exceeds 10 percent.), + ManagementScope => q(4), + Severity => q(1), +}; +1;