From 2561538748fc4032cfca5010687c072b7da68e30 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 26 Aug 2015 14:05:04 +0200 Subject: [PATCH] + update bluecoat plugin mode hardware --- centreon-plugins/network/bluecoat/snmp/mode/hardware.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/network/bluecoat/snmp/mode/hardware.pm b/centreon-plugins/network/bluecoat/snmp/mode/hardware.pm index 7e602a356..c2fb0dee5 100644 --- a/centreon-plugins/network/bluecoat/snmp/mode/hardware.pm +++ b/centreon-plugins/network/bluecoat/snmp/mode/hardware.pm @@ -127,8 +127,8 @@ sub check_options { } else { ($section, $instance, $status, $filter) = @values; } - if ($section !~ /^sensor$/) { - $self->{output}->add_option_msg(short_msg => "Wronghreshold-overload section '" . $val . "'."); + if ($section !~ /^sensor|disk|sensor_opstatus$/) { + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload section '" . $val . "'."); $self->{output}->option_exit(); } if ($self->{output}->is_litteral_status(status => $status) == 0) { @@ -304,7 +304,6 @@ sub get_severity { return $status; } - 1; __END__