This commit is contained in:
Kevin Duret 2014-02-18 14:00:03 +00:00
commit 308b51acff
1 changed files with 4 additions and 2 deletions

View File

@ -76,8 +76,10 @@ sub run {
$self->{output}->output_add(long_msg => sprintf("[System: %s] [Firmware: %s]", $result->{$oid_sysDescr}, $result->{$oid_fgSysVersion}));
if ($result->{$oid_fgHwSensorCount} == 0) {
$self->{output}->add_option_msg(short_msg => "No hardware sensors available.");
$self->{output}->option_exit();
$self->{output}->output_add(severity => 'UNKNOWN',
short_msg => "No hardware sensors available.");
$self->{output}->display();
$self->{output}->exit();
}
$self->{output}->output_add(severity => 'OK',