From e579c380c4c3e47ecf3f537eeed0e1ff81fdece9 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Tue, 18 Feb 2014 14:40:11 +0100 Subject: [PATCH] - No verbose output --- network/fortinet/fortigate/common/mode/hardware.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/network/fortinet/fortigate/common/mode/hardware.pm b/network/fortinet/fortigate/common/mode/hardware.pm index 6b5da4614..e71a74fc6 100644 --- a/network/fortinet/fortigate/common/mode/hardware.pm +++ b/network/fortinet/fortigate/common/mode/hardware.pm @@ -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',