From 39f771170f4cf0e3f8471e0f949b045fa0c6e501 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 5 May 2010 13:57:09 +0200 Subject: [PATCH] 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...). --- etc/munin/plugins/hpasmcli2_fans | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.30.2