added predefined conditions and sensors for HFI monitoring

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-01-23 20:19:00 +00:00
parent 5b953f5ad5
commit e24c7b862c
8 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
$RES::Condition{'Drawer_not_configured'} = {
Name => q(Drawer_not_configured),
ResourceClass => q(IBM.Sensor),
EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0),
RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0),
EventDescription => q(Drawer (FSP) has not been populated with its server-specific configuration data.),
RearmDescription => q(Drawer (FSP) is configured.),
SelectionString => q(Name="Drawer_configuration"),
ManagementScope => q(1),
Severity => q(1),
NoToggleExprFlag => q(1),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
$RES::Condition{'HFI_down'} = {
Name => q(HFI_down),
ResourceClass => q(IBM.Sensor),
EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0),
RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0),
EventDescription => q(HFI is unavailable for use due to severe HFI or ISR hardware error.),
RearmDescription => q(HFI is back to normal.),
SelectionString => q(Name="HFI_status"),
ManagementScope => q(1),
Severity => q(1),
NoToggleExprFlag => q(1),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
$RES::Condition{'HFI_not_configured'} = {
Name => q(HFI_not_configured),
ResourceClass => q(IBM.Sensor),
EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0),
RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0),
EventDescription => q(HFI did not get configured during server power-on.),
RearmDescription => q(HFI is configured.),
SelectionString => q(Name="HFI_configuration"),
ManagementScope => q(1),
Severity => q(1),
NoToggleExprFlag => q(1),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
$RES::Condition{'ISR_down'} = {
Name => q(ISR_down),
ResourceClass => q(IBM.Sensor),
EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0),
RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0),
EventDescription => q(ISR is unavailable for use due to severe hardware error.),
RearmDescription => q(ISR is back to normal.),
SelectionString => q(Name="ISR_status"),
ManagementScope => q(1),
Severity => q(1),
NoToggleExprFlag => q(1),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
$RES::Sensor{'Drawer_configuration'} = {
Name => q(Drawer_configuration),
Command => "/tmp/fake",
UserName => q(root),
RefreshInterval => q(0),
ControlFlags => q(0),#change to 8 for rsct 2.5.3.0 and greater
Description => q(This sensor is refreshed when a drawer (FSP) has not been populated with its server-specific configuration data. It is also refreshed when the drawer is back to normal.),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
$RES::Sensor{'HFI_configuration'} = {
Name => q(HFI_configuration),
Command => "/tmp/fake",
UserName => q(root),
RefreshInterval => q(0),
ControlFlags => q(0), #change to 8 for rsct 2.5.3.0 and greater
Description => q(This sensor is refreshed when an HFI did not get configured during server power-on. It is also refreshed when the HFI is configured.),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
$RES::Sensor{'HFI_status'} = {
Name => q(HFI_status),
Command => "/tmp/fake",
UserName => q(root),
RefreshInterval => q(0),
ControlFlags => q(0), #change to 8 for rsct 2.5.3.0 and greater
Description => q(This sensor is refreshed when an HFI is unavailable for use due to severe HFI or ISR hardware error. It is also refreshed when the HFI is back to normal.),
};
1;

View File

@ -0,0 +1,15 @@
#!/usr/bin/perl
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
$RES::Sensor{'ISR_status'} = {
Name => q(ISR_status),
Command => "/tmp/fake",
UserName => q(root),
RefreshInterval => q(0),
ControlFlags => q(0), #change to 8 for rsct 2.5.3.0 and greater
Description => q(This sensor is refreshed when an ISR is unavailable for use due to severe hardware error. It is also refreshed when ISR is back to normal.),
};
1;