From 4975211274b2cc6d017548986806b45ad837bec3 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 22 Jul 2015 16:57:02 +0200 Subject: [PATCH] Minor fixe in sensor generator --- zabbix_scripts/util_generate_sensors_ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix_scripts/util_generate_sensors_ini b/zabbix_scripts/util_generate_sensors_ini index 56f62d5..0353ce2 100755 --- a/zabbix_scripts/util_generate_sensors_ini +++ b/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}); }