2010-09-29 17:02:48 +00:00
|
|
|
#!/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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-11-10 19:55:16 +00:00
|
|
|
$RES::Condition{'NodeReachability_B'} = {
|
|
|
|
Name => q(NodeReachability_B),
|
2010-09-29 17:02:48 +00:00
|
|
|
ResourceClass => q(IBM.MngNode),
|
|
|
|
EventExpression => q(Status!=Status@P),
|
2010-11-10 19:55:16 +00:00
|
|
|
EventDescription => q(An event will be generated when a status changes. This is a batch condition.),
|
2010-09-29 17:02:48 +00:00
|
|
|
ManagementScope => q(1),
|
|
|
|
EventBatchingInterval => q(60),
|
|
|
|
EventBatchingMaxEvents => q(200),
|
|
|
|
Severity => q(2),
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
1;
|