Update globalstatus.pm

protect in sprintf
This commit is contained in:
Sims24 2015-09-30 17:27:32 +02:00
parent 22f7fc4566
commit ac1a3e5677
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ sub run {
$self->{output}->output_add(severity => $self->get_severity(value => $result->{$oid_ibm3100StatusGlobalStatus}),
short_msg => sprintf("Overall global status is '%s'.",
${$states{$result->{$oid_ibm3100StatusGlobalStatus}}}[0]));
$self->{output}->output_add(long_msg => sprintf("Error state: %s Error code: %i", $result->{$oid_ibm3100FaultDesc}, $result->{$oid_ibm3100FaultError}));
$self->{output}->output_add(long_msg => sprintf("Error state: '%s' Error code: '%i'", $result->{$oid_ibm3100FaultDesc}, $result->{$oid_ibm3100FaultError}));
$self->{output}->display();
$self->{output}->exit();