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...).
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) {