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

Fixed undefined warnings

This commit is contained in:
Bart ten Brinke 2012-12-31 09:29:37 +01:00
parent cd4dd57e24
commit ab27dffa6d

View file

@ -131,11 +131,11 @@ foreach my $line (@data) {
value => $dataline[3], value => $dataline[3],
label => $dataline[1] label => $dataline[1]
); );
$sensor{lwarn} = $dataline[7] ne "N/A" ? $dataline[7] : ''; $sensor{lwarn} = (defined($dataline[7]) and $dataline[7] ne "N/A") ? $dataline[7] : '';
$sensor{hwarn} = $dataline[8] ne "N/A" ? $dataline[8] : ''; $sensor{hwarn} = (defined($dataline[8]) and $dataline[8] ne "N/A") ? $dataline[8] : '';
$sensor{lcrit} = $dataline[6] ne "N/A" ? $dataline[6] : ''; $sensor{lcrit} = (defined($dataline[6]) and $dataline[6] ne "N/A") ? $dataline[6] : '';
$sensor{hcrit} = $dataline[9] ne "N/A" ? $dataline[9] : ''; $sensor{hcrit} = (defined($dataline[9]) and $dataline[9] ne "N/A") ? $dataline[9] : '';
my $type; my $type;
if ( $dataline[2] eq "Temperature" ) { if ( $dataline[2] eq "Temperature" ) {