From d8a8b4bdab9428ada3137b7d4dafb5b91046508f Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 2 Jul 2015 19:11:56 +0200 Subject: [PATCH] + Fix dlink temperature --- network/dlink/standard/snmp/mode/components/temperature.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/dlink/standard/snmp/mode/components/temperature.pm b/network/dlink/standard/snmp/mode/components/temperature.pm index 39b5d5adf..65a489823 100644 --- a/network/dlink/standard/snmp/mode/components/temperature.pm +++ b/network/dlink/standard/snmp/mode/components/temperature.pm @@ -65,7 +65,7 @@ sub check { next if ($self->check_exclude(section => 'temperature', instance => $instance)); $self->{components}->{temperature}->{total}++; - $self->{output}->output_add(long_msg => sprintf("'%s' %s temperature is %dC.", + $self->{output}->output_add(long_msg => sprintf("Temperature '%s' is %dC.", $instance, $result->{swTemperatureCurrent})); my ($exit, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'temperature', instance => $instance, value => $result->{swTemperatureCurrent});