diff --git a/monitorix b/monitorix index c52b8fb..dae0fef 100755 --- a/monitorix +++ b/monitorix @@ -312,10 +312,10 @@ EOF next; } if($g eq "gensens") { - foreach my $sg (sort keys %{$config{gensens}->{list}}) { - my $name = trim($config{gensens}->{title}->{$sg}); + for($n = 0; $n < keys %{$config{gensens}->{list}}; $n++) { + my $name = trim($config{gensens}->{title}->{$n}); $gname = "_" . $g; - print(OUT " \n"); + print(OUT " \n"); } next; }