8f19be2f03
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7726 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
30 lines
642 B
Perl
30 lines
642 B
Perl
#!/usr/bin/perl
|
|
|
|
BEGIN
|
|
{
|
|
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
|
|
}
|
|
use lib "$::XCATROOT/lib/perl";
|
|
use xCAT::Utils;
|
|
|
|
if (exists($ENV{RSCT_VER})) {
|
|
my $rsct_ver=$ENV{RSCT_VER};
|
|
if (xCAT::Utils->CheckVersion($rsct_ver, "2.3.5.0") < 0) {
|
|
exit(0);
|
|
}
|
|
}
|
|
|
|
$RES::Condition{'NodeReachability_Batch'} = {
|
|
Name => q(NodeReachability_Batch),
|
|
ResourceClass => q(IBM.MngNode),
|
|
EventExpression => q(Status!=Status@P),
|
|
EventDescription => q(An event will be generated when a status changes),
|
|
ManagementScope => q(1),
|
|
EventBatchingInterval => q(60),
|
|
EventBatchingMaxEvents => q(200),
|
|
Severity => q(2),
|
|
};
|
|
|
|
|
|
1;
|