From: Matthijs Kooijman Date: Wed, 5 May 2010 11:57:09 +0000 (+0200) Subject: munin: Fix fan speed limits of hpasmcli2 plugin. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=39f771170f4cf0e3f8471e0f949b045fa0c6e501;p=matthijs%2Fservers%2Fdrsnuggles.git munin: Fix fan speed limits of hpasmcli2 plugin. The plugin now warns when the speed is < 75% and becomes critical when speed is < 50%. Previously, it would warn when the speed was > 75%, which was reversed (taken from the temperature values...). --- diff --git a/etc/munin/plugins/hpasmcli2_fans b/etc/munin/plugins/hpasmcli2_fans index 80e5d97..8ac45b0 100755 --- a/etc/munin/plugins/hpasmcli2_fans +++ b/etc/munin/plugins/hpasmcli2_fans @@ -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) {