mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			30 lines
		
	
	
		
			662 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			662 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_B'} = {
 | |
| 	Name => q(NodeReachability_B),
 | |
| 	ResourceClass => q(IBM.MngNode),
 | |
| 	EventExpression => q(Status!=Status@P),
 | |
| 	EventDescription => q(An event will be generated when a status changes. This is a batch condition.),
 | |
| 	ManagementScope => q(1),
 | |
| 	EventBatchingInterval => q(60),
 | |
| 	EventBatchingMaxEvents => q(200),
 | |
| 	Severity => q(2),
 | |
| };
 | |
| 
 | |
| 
 | |
| 1;
 |