2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

freeipmi: avoid reporting N/A values.

This commit is contained in:
Diego Elio Pettenò 2012-10-23 17:26:08 -07:00
parent 1f9d76a7cb
commit 9a46eb9bf5

View File

@ -101,6 +101,9 @@ my @data = split(/\n/, $output);
foreach my $line (@data) {
my @dataline = split(/,/, $line);
# skip values that are not useful
next if $dataline[3] eq "N/A";
my %sensor = (
graphid => "ipmi" . $dataline[0],
value => $dataline[3],