From aa4785bd518a1e083c987c722ad4ebd006f623e7 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 6 Nov 2015 14:06:02 +0100 Subject: [PATCH] + Correct hardware bluecoat --- network/bluecoat/snmp/mode/components/disk.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/bluecoat/snmp/mode/components/disk.pm b/network/bluecoat/snmp/mode/components/disk.pm index c8f429993..bf0127b44 100644 --- a/network/bluecoat/snmp/mode/components/disk.pm +++ b/network/bluecoat/snmp/mode/components/disk.pm @@ -61,7 +61,7 @@ sub check { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_deviceDiskValueEntry}, instance => $instance); - next if ($result->{deviceDiskStatus} !~ /notpresent/i && + next if ($result->{deviceDiskStatus} =~ /notpresent/i && $self->absent_problem(section => 'disk', instance => $instance)); next if ($self->check_filter(section => 'disk', instance => $instance)); $self->{components}->{disk}->{total}++; @@ -72,7 +72,7 @@ sub check { my $exit = $self->get_severity(section => 'disk', value => $result->{deviceDiskStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Sensor '%s' operational status is %s", + short_msg => sprintf("Disk '%s' status is %s", $result->{deviceDiskSerialN}, $result->{deviceDiskStatus})); } }