* Updated scab-storcli to not trigger a health alarm when the alarm state is "absent".

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 3 years ago
parent eeafefbe08
commit 75abeb3b9a
  1. 2
      scancore-agents/scan-network/scan-network
  2. 2
      scancore-agents/scan-storcli/scan-storcli

@ -3358,7 +3358,7 @@ AND
} }
else else
{ {
# Clear any old condition. # Clear any old conditions.
my $age = $anvil->Alert->check_condition_age({ my $age = $anvil->Alert->check_condition_age({
debug => 2, debug => 2,
clear => 1, clear => 1,

@ -317,7 +317,7 @@ sub pre_process_health
}}); }});
my $value = $anvil->data->{controller}{serial_number}{$serial_number}{variable}{$variable}; my $value = $anvil->data->{controller}{serial_number}{$serial_number}{variable}{$variable};
if (($variable eq "alarm_state") && (lc($value) ne "missing") && (lc($value) ne "off")) if (($variable eq "alarm_state") && (lc($value) ne "missing") && (lc($value) ne "off") && (lc($value) ne "absent"))
{ {
my $health_source_name = "controller:".$variable; my $health_source_name = "controller:".$variable;
$anvil->data->{health}{new}{$health_source_name} = 1; $anvil->data->{health}{new}{$health_source_name} = 1;

Loading…
Cancel
Save