From fa65232cbdf49e85b1af369557eab6d957f03804 Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 19 Nov 2010 18:28:13 +0000 Subject: [PATCH] more conditions to monitor services on the sn git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8212 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../resources/mn/IBM.Condition/CheckCONSonSN.pm | 14 ++++++++++++++ .../resources/mn/IBM.Condition/CheckFTPonSN.pm | 14 ++++++++++++++ .../resources/mn/IBM.Condition/CheckNTPonSN.pm | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/CheckCONSonSN.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/CheckFTPonSN.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/CheckNTPonSN.pm diff --git a/xCAT-rmc/resources/mn/IBM.Condition/CheckCONSonSN.pm b/xCAT-rmc/resources/mn/IBM.Condition/CheckCONSonSN.pm new file mode 100644 index 000000000..aec6c0393 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/CheckCONSonSN.pm @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +$RES::Condition{'CheckCONSonSN'} = { + Name => q(CheckCONSonSN), + ResourceClass => q(IBM.Program), + EventExpression => q(Processes.CurPidCount == 0), + EventDescription => q(An event will be generated when the conserver is down on the service node. There may be other nodes in this management domain such as HMCs. To exclude them, just change the SelectionString to: "ProgramName=='conserver' && NodeNameList >< {'hmc1','hmc2}" where hmc1 and hmc2 are the names for the nodes that you want to exclude.), + RearmExpression => q(Processes.CurPidCount != 0), + RearmDescription => q(A rearm event will be generated when the conserver is up on the service node.), + SelectionString => q(ProgramName=='conserver'), + ManagementScope => q(4), + Severity => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Condition/CheckFTPonSN.pm b/xCAT-rmc/resources/mn/IBM.Condition/CheckFTPonSN.pm new file mode 100644 index 000000000..fee770714 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/CheckFTPonSN.pm @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +$RES::Condition{'CheckFTPonSN'} = { + Name => q(CheckFTPonSN), + ResourceClass => q(IBM.Program), + EventExpression => q(Processes.CurPidCount == 0), + EventDescription => q(An event will be generated when the FTP server is down on the service node. There may be other nodes in this management domain such as HMCs. To exclude them, just change the SelectionString to: "ProgramName=='vsftpd' && NodeNameList >< {'hmc1','hmc2}" where hmc1 and hmc2 are the names for the nodes that you want to exclude.), + RearmExpression => q(Processes.CurPidCount != 0), + RearmDescription => q(A rearm event will be generated when the FTP server is up on the service node.), + SelectionString => q(ProgramName=='vsftpd'), + ManagementScope => q(4), + Severity => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Condition/CheckNTPonSN.pm b/xCAT-rmc/resources/mn/IBM.Condition/CheckNTPonSN.pm new file mode 100644 index 000000000..361902ba9 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/CheckNTPonSN.pm @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +$RES::Condition{'CheckNTPonSN'} = { + Name => q(CheckNTPonSN), + ResourceClass => q(IBM.Program), + EventExpression => q(Processes.CurPidCount == 0), + EventDescription => q(An event will be generated when the NTP server is down on the service node. There may be other nodes in this management domain such as HMCs. To exclude them, just change the SelectionString to: "ProgramName=='ntpd' && NodeNameList >< {'hmc1','hmc2}" where hmc1 and hmc2 are the names for the nodes that you want to exclude.), + RearmExpression => q(Processes.CurPidCount != 0), + RearmDescription => q(A rearm event will be generated when the NTP server is up on the service node.), + SelectionString => q(ProgramName=='ntpd'), + ManagementScope => q(4), + Severity => q(1), +}; +1;