From a826a0a0e916c1063ad80113870388d509a10f85 Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 13 Jun 2008 20:30:51 +0000 Subject: [PATCH] added some predefined responses for RMC monitoring git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../mn/IBM.EventResponse/BroadcastEventsAnyTime.pm | 8 ++++++++ .../mn/IBM.EventResponse/DisplayEventsAnyTime.pm | 8 ++++++++ .../resources/mn/IBM.EventResponse/EmailRootAnyTime.pm | 8 ++++++++ .../resources/mn/IBM.EventResponse/EmailRootOffShift.pm | 8 ++++++++ .../mn/IBM.EventResponse/LogOnlyToAuditLogAnyTime.pm | 8 ++++++++ .../mn/IBM.EventResponse/MsgEventsToRootAnyTime.pm | 8 ++++++++ 6 files changed, 48 insertions(+) create mode 100644 xCAT-rmc/resources/mn/IBM.EventResponse/BroadcastEventsAnyTime.pm create mode 100644 xCAT-rmc/resources/mn/IBM.EventResponse/DisplayEventsAnyTime.pm create mode 100644 xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootAnyTime.pm create mode 100644 xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootOffShift.pm create mode 100644 xCAT-rmc/resources/mn/IBM.EventResponse/LogOnlyToAuditLogAnyTime.pm create mode 100644 xCAT-rmc/resources/mn/IBM.EventResponse/MsgEventsToRootAnyTime.pm diff --git a/xCAT-rmc/resources/mn/IBM.EventResponse/BroadcastEventsAnyTime.pm b/xCAT-rmc/resources/mn/IBM.EventResponse/BroadcastEventsAnyTime.pm new file mode 100644 index 000000000..2a0ff76a6 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.EventResponse/BroadcastEventsAnyTime.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$RES::EventResponse{'BroadcastEventsAnyTime'} = { + Name => q(BroadcastEventsAnyTime), + Locked => q(0), + Actions => q({[wallEvent,{127},{0},{86400},/usr/sbin/rsct/bin/walleven,3,0,0,0,{},0]}), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.EventResponse/DisplayEventsAnyTime.pm b/xCAT-rmc/resources/mn/IBM.EventResponse/DisplayEventsAnyTime.pm new file mode 100644 index 000000000..25babed74 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.EventResponse/DisplayEventsAnyTime.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$RES::EventResponse{'DisplayEventsAnyTime'} = { + Name => q(DisplayEventsAnyTime), + Locked => q(0), + Actions => q({[displayEvent,{127},{0},{86400},/usr/sbin/rsct/bin/displayevent admindesktop:0,3,0,0,0,{},0]}), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootAnyTime.pm b/xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootAnyTime.pm new file mode 100644 index 000000000..d3cda25dd --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootAnyTime.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$RES::EventResponse{'EmailRootAnyTime'} = { + Name => q(EmailRootAnyTime), + Locked => q(0), + Actions => q({[emailRoot,{127},{0},{86400},/usr/sbin/rsct/bin/notifyevent root,3,0,0,0,{},0]}), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootOffShift.pm b/xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootOffShift.pm new file mode 100644 index 000000000..27fde5085 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.EventResponse/EmailRootOffShift.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$RES::EventResponse{'EmailRootOffShift'} = { + Name => q(EmailRootOffShift), + Locked => q(0), + Actions => q({[emilRoot,{62,62,65},{61200,0,0},{86400,28800,86400},/usr/sbin/rsct/bin/notifyevent root,3,0,-1,0,{},0]}), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.EventResponse/LogOnlyToAuditLogAnyTime.pm b/xCAT-rmc/resources/mn/IBM.EventResponse/LogOnlyToAuditLogAnyTime.pm new file mode 100644 index 000000000..56005d41d --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.EventResponse/LogOnlyToAuditLogAnyTime.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$RES::EventResponse{'LogOnlyToAuditLogAnyTime'} = { + Name => q(LogOnlyToAuditLogAnyTime), + Locked => q(0), + Actions => q({}), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.EventResponse/MsgEventsToRootAnyTime.pm b/xCAT-rmc/resources/mn/IBM.EventResponse/MsgEventsToRootAnyTime.pm new file mode 100644 index 000000000..6b02fd29f --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.EventResponse/MsgEventsToRootAnyTime.pm @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$RES::EventResponse{'MsgEventsToRootAnyTime'} = { + Name => q(MsgEventsToRootAnyTime), + Locked => q(0), + Actions => q({[msgEvent,{127},{0},{86400},/usr/sbin/rsct/bin/msgevent root,3,0,0,0,{},0]}), +}; +1;