Skip to content

Commit

Permalink
pnp need perf-data with always same order
Browse files Browse the repository at this point in the history
pnp draws nasty graphs until the order of the perf-data is always the same. Fixed by adding a missing sort.
  • Loading branch information
SteScho committed Jan 29, 2016
1 parent 7cb6b25 commit 6263f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/check_snmp_int.pl
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ sub check_options {
# and put the oid to query in an array

verb("Filter : $o_descr");
foreach my $key ( keys %$resultat) {
foreach my $key (sort { $$resultat{$a} cmp $$resultat{$b} } keys %$resultat) {
verb("OID : $key, Desc : $$resultat{$key}");
# test by regexp or exact match
my $test = defined($o_noreg)
Expand Down

0 comments on commit 6263f2e

Please sign in to comment.