mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
Add type to output
This commit is contained in:
parent
48bac7083d
commit
e47ae10ba8
@ -106,9 +106,9 @@ sub check {
|
||||
my $psu_ConfigurationErrorType = $result->{$oid__powerSupplyConfigurationErrorType . '.' . $instance};
|
||||
|
||||
$self->{components}->{psu}->{total}++;
|
||||
$self->{output}->output_add(long_msg => sprintf("psu %d status is %s, state is %s [chassis: %d].",
|
||||
$self->{output}->output_add(long_msg => sprintf("psu %d status is %s, state is %s [chassis: %d, type: %d].",
|
||||
$psu_Index, ${$status{$psu_Status}}[0], ${$state{$psu_SensorState}}[0],
|
||||
$chassis_Index
|
||||
$chassis_Index, ${$type{$psu_Type}}[0]
|
||||
));
|
||||
if ($psu_Status != 3) {
|
||||
$self->{output}->output_add(severity => ${$status{$psu_Status}}[1],
|
||||
|
Loading…
x
Reference in New Issue
Block a user