Minor fixe in sensor generator

tags/zabbix-agent-addons-0.2.20-1 0.2.2_el5
Daniel Berteaud 9 years ago
parent 20b5b3aaa6
commit 4975211274
  1. 4
      zabbix_scripts/util_generate_sensors_ini

@ -265,14 +265,14 @@ if ($upsc && -x $upsc){
unit => '°C',
cmd => "$upsc $ups ups.temperature"
};
print "Foudn a temperature sensor for ups $ups";
print "Found a temperature sensor for ups $ups\n";
}
}
}
}
# TODO: add support for lm sensors, but its ouput is harder to parse
foreach my $s (keys %$sensors){
foreach my $s (sort keys %$sensors){
$cfg->set_block($s, $sensors->{$s});
}

Loading…
Cancel
Save