From a765de748294232240b2b5cc839057e0551ed433 Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 17 Nov 2010 18:45:47 +0000 Subject: [PATCH] more conditons for monitoring git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8189 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../mn/IBM.Condition/AnyNodeRealMemFree.pm | 13 +++++++++++++ .../mn/IBM.Condition/AnyNodeRealMemFree_H.pm | 15 +++++++++++++++ .../sn/IBM.Condition/AnyNodeRealMemFree.pm | 13 +++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/AnyNodeRealMemFree_H.pm create mode 100644 xCAT-rmc/resources/sn/IBM.Condition/AnyNodeRealMemFree.pm 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;