munin: Fix fan speed limits of hpasmcli2 plugin.
[matthijs/servers/drsnuggles.git] / etc / munin / plugins / hpasmcli2_fans
index 80e5d97cb8fefe54066bc518860106652ba77856..8ac45b019f9a4964de129548ab9f28b40ef3c984 100755 (executable)
@@ -151,8 +151,8 @@ if (defined($show_target) and $show_target eq 'temp') {
         print "graph_info This graph shows the info of fans as reported by hpasmcli.\n";
         foreach my $key (sort keys %output) {
             print "fan$key.label FAN$key $output{$key}->{'location'}\n";
-            print "fan$key.warning " . ($output{$key}->{'threshold'} * 0.75) . "\n";
-            print "fan$key.critical $output{$key}->{'threshold'}\n";
+            print "fan$key.warning " . ($output{$key}->{'threshold'} * 0.75) .  ":\n";
+            print "fan$key.critical " . ($output{$key}->{'threshold'} * 0.5) .  ":\n";
         }
     } else {
         foreach my $key (sort keys %output) {