X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Fmunin%2Fplugins%2Fhpasmcli2_fans;h=75e6c0d1d460662d29e1d40e7a021295b343cb23;hb=refs%2Fheads%2Fds-host;hp=80e5d97cb8fefe54066bc518860106652ba77856;hpb=81157fd299e5166430ab4003e4b6bf8eb94da2b8;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/munin/plugins/hpasmcli2_fans b/etc/munin/plugins/hpasmcli2_fans index 80e5d97..75e6c0d 100755 --- a/etc/munin/plugins/hpasmcli2_fans +++ b/etc/munin/plugins/hpasmcli2_fans @@ -116,7 +116,7 @@ if (defined($show_target) and $show_target eq 'temp') { print "graph_info This graph shows the temperatures as reported by hpasmcli.\n"; foreach my $key (sort keys %output) { print "temp$key.label $output{$key}->{'location'}\n"; - print "temp$key.warning " . ($output{$key}->{'threshold'} * 0.75) . "\n"; + print "temp$key.warning " . ($output{$key}->{'threshold'} * 0.80) . "\n"; print "temp$key.critical $output{$key}->{'threshold'}\n"; } } else { @@ -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) {